From 0dced9221260734dcb27a70a2227a13a2d1bcf10 Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 31 Oct 2005 14:30:45 +0000 Subject: (svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater) --- vehicle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vehicle.c b/vehicle.c index fbbd7db3b..3dea79fee 100644 --- a/vehicle.c +++ b/vehicle.c @@ -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; -- cgit v1.2.3-70-g09d2