diff options
author | bjarni <bjarni@openttd.org> | 2005-10-31 14:30:45 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-10-31 14:30:45 +0000 |
commit | 0dced9221260734dcb27a70a2227a13a2d1bcf10 (patch) | |
tree | ea68602d9ac94a618212db66b99d04240265b054 | |
parent | fa5ca040e9482e4d07677b371d2f8fe0cf24fc7e (diff) | |
download | openttd-0dced9221260734dcb27a70a2227a13a2d1bcf10.tar.xz |
(svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater)
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1571,6 +1571,8 @@ static int32 ReplaceVehicle(Vehicle **w, byte flags) DoCommand(0, 0, (old_v->index << 16) | new_v->index, IsOrderListShared(old_v) ? CO_SHARE : CO_COPY, DC_EXEC, CMD_CLONE_ORDER); new_v->cur_order_index = old_v->cur_order_index; ChangeVehicleViewWindow(old_v, new_v); + new_v->profit_this_year = old_v->profit_this_year; + new_v->profit_last_year = old_v->profit_last_year; new_front = true; new_v->current_order = old_v->current_order; |