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

Closes #20713

(cherry picked from commit d7e463dd9f7c61e1056148cf8956bcb0f8fd1fed)
This commit is contained in:
Shauren authored and Aokromes committed 2017-10-26 03:08:14 +02:00
1 parent 74ea965452
commit 64d1facd40
1 file changed
+5 -1
+5 -1
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)
{