Mercurial > hg > openttd
changeset 2575:4b8edb68204f draft
(svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater)
author | bjarni <bjarni@openttd.org> |
---|---|
date | Mon, 31 Oct 2005 14:30:45 +0000 |
parents | 5eac9001f4ca |
children | 57c9fceda52e |
files | vehicle.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle.c +++ b/vehicle.c @@ -1571,6 +1571,8 @@ 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;