# HG changeset patch # User bjarni # Date 1130769045 0 # Node ID 44f0dd3b4a976d8578f2f922fbab149f056af9c9 # Parent 382fd3f37604613a824af4227cbb32acc7f307db (svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater) diff -r 382fd3f37604 -r 44f0dd3b4a97 vehicle.c --- a/vehicle.c Mon Oct 31 12:59:47 2005 +0000 +++ b/vehicle.c Mon Oct 31 14:30:45 2005 +0000 @@ -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;