summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-26 15:30:41 +0000
committerrubidium <rubidium@openttd.org>2013-11-26 15:30:41 +0000
commit7abe85d72715f91ab309a3aaa18572a8964b189c (patch)
tree02e17f779e4bc8cf82a5f80c17831f0c398d1822 /src/train_cmd.cpp
parentb1bcd1adab165093bc8f737b4e85fec4f3092ee4 (diff)
downloadopenttd-7abe85d72715f91ab309a3aaa18572a8964b189c.tar.xz
(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
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 8b1062022..5ccddc79a 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);
}