From 7abe85d72715f91ab309a3aaa18572a8964b189c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 26 Nov 2013 15:30:41 +0000 Subject: [PATCH] (svn r26129) -Fix: remove dead code; it could be made to do what it did, but then it would be inconsistent with moving vehicles around --- src/train_cmd.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 8b1062022b..5ccddc79a4 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1336,9 +1336,6 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u */ CommandCost CmdSellRailWagon(DoCommandFlag flags, Vehicle *t, uint16 data, uint32 user) { - /* Check if we deleted a vehicle window */ - Window *w = NULL; - /* Sell a chain of vehicles or not? */ bool sell_chain = HasBit(data, 0); @@ -1389,9 +1386,6 @@ CommandCost CmdSellRailWagon(DoCommandFlag flags, Vehicle *t, uint16 data, uint3 /* Copy other important data from the front engine */ new_head->CopyVehicleConfigAndStatistics(first); GroupStatistics::CountVehicle(new_head, 1); // after copying over the profit - - /* If we deleted a window then open a new one for the 'new' train */ - if (IsLocalCompany() && w != NULL) ShowVehicleViewWindow(new_head); } else if (v->IsPrimaryVehicle() && data & (MAKE_ORDER_BACKUP_FLAG >> 20)) { OrderBackup::Backup(v, user); }