diff options
author | celestar <celestar@openttd.org> | 2007-01-10 14:22:49 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-01-10 14:22:49 +0000 |
commit | 52d14b3dd0c4d17fe4d13df7ad9014c4ba3827e8 (patch) | |
tree | fba77bb2a016c23abb794e6ea9618d9aa77440bc | |
parent | e35fdd699b6d1eafc41fb7083ece17b6812e7c63 (diff) | |
download | openttd-52d14b3dd0c4d17fe4d13df7ad9014c4ba3827e8.tar.xz |
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
-rw-r--r-- | src/economy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.c b/src/economy.c index bcd3ac552..a325a863c 100644 --- a/src/economy.c +++ b/src/economy.c @@ -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; |