Core/Taxi: Fixed applying reputation discount to first taxi segment

Closes #20713

(cherry picked from commit d7e463dd9f)
This commit is contained in:
Shauren
2017-10-25 18:33:52 +02:00
committed by Aokromes
parent 74ea965452
commit 64d1facd40

View File

@@ -21552,7 +21552,11 @@ bool Player::ActivateTaxiPathTo(std::vector<uint32> const& nodes, Creature* npc
uint64 money = GetMoney();
if (npc)
totalcost = (uint32)ceil(totalcost*GetReputationPriceDiscount(npc));
{
float discount = GetReputationPriceDiscount(npc);
totalcost = uint32(ceil(totalcost * discount));
firstcost = uint32(round(firstcost * discount));
}
if (money < totalcost)
{