# HG changeset patch # User bjarni # Date 2005-10-31 14:30:45 # Node ID 06bffaec949bb6b61f40111efe9672af4a717cb8 # Parent 7236c646b1d7c9cb16368c2bfe362b359ae67743 (svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater) diff --git a/vehicle.c b/vehicle.c --- a/vehicle.c +++ b/vehicle.c @@ -1571,6 +1571,8 @@ static int32 ReplaceVehicle(Vehicle **w, 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;