Fix: only count distance traveled in vehicles for cargo payment (#11283)
No longer you can utilize the free (and instant) labour of station
workers, transporting your cargo from one part of the station to
the other. No more!
Based on patch by dP.
(cherry picked from commit df400ef84a
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
05c35c8e31
commit
4280c413a6
@@ -3385,7 +3385,7 @@ void Vehicle::CancelReservation(StationID next, Station *st)
|
||||
VehicleCargoList &cargo = v->cargo;
|
||||
if (cargo.ActionCount(VehicleCargoList::MTA_LOAD) > 0) {
|
||||
DEBUG(misc, 1, "cancelling cargo reservation");
|
||||
cargo.Return(UINT_MAX, &st->goods[v->cargo_type].CreateData().cargo, next);
|
||||
cargo.Return(UINT_MAX, &st->goods[v->cargo_type].CreateData().cargo, next, v->tile);
|
||||
}
|
||||
cargo.KeepAll();
|
||||
}
|
||||
|
Reference in New Issue
Block a user