mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
This commit is contained in:
parent
e35fdd699b
commit
52d14b3dd0
|
@ -1476,7 +1476,7 @@ int LoadUnloadVehicle(Vehicle *v, bool just_arrived)
|
|||
feeder_profit_share = ge->feeder_profit * cargoshare / 10000;
|
||||
v->cargo_count += cap;
|
||||
ge->waiting_acceptance -= cap;
|
||||
v->profit_this_year -= feeder_profit_share;
|
||||
u->profit_this_year -= feeder_profit_share;
|
||||
ge->feeder_profit -= feeder_profit_share;
|
||||
unloading_time += cap;
|
||||
st->time_since_load = 0;
|
||||
|
|
Loading…
Reference in New Issue