Fix: base cargo payment on load/unload tile, instead of station sign location (#11281)

(cherry picked from commit 9c49a61249)
This commit is contained in:
Patric Stout
2023-09-13 16:41:09 +02:00
committed by Jonathan G Rennison
parent a15847cf4f
commit 05c35c8e31
7 changed files with 80 additions and 46 deletions

View File

@@ -37,8 +37,8 @@ struct CargoPayment : CargoPaymentPool::PoolItem<&_cargo_payment_pool> {
CargoPayment(Vehicle *front);
~CargoPayment();
Money PayTransfer(CargoPacket *cp, uint count);
void PayFinalDelivery(CargoPacket *cp, uint count);
Money PayTransfer(CargoPacket *cp, uint count, TileIndex current_tile);
void PayFinalDelivery(CargoPacket *cp, uint count, TileIndex current_tile);
/**
* Sets the currently handled cargo type.