summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-26 21:08:51 +0000
committerrubidium <rubidium@openttd.org>2008-12-26 21:08:51 +0000
commit3ebe66a5e47531e9033c8552a1abe82ad0ef448f (patch)
treedbb2d01a3da0060c340d6e2adcfcf1188c8f3891 /src/ship_cmd.cpp
parentf18043ee21218dc9ea26ce41b1294c5212ac363c (diff)
downloadopenttd-3ebe66a5e47531e9033c8552a1abe82ad0ef448f.tar.xz
(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index b93433514..029591692 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -863,11 +863,6 @@ CommandCost CmdSellShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
CommandCost ret(EXPENSES_NEW_VEHICLES, -v->value);
if (flags & DC_EXEC) {
- InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
- InvalidateWindowClassesData(WC_SHIPS_LIST, 0);
- InvalidateWindow(WC_COMPANY, v->owner);
- DeleteWindowById(WC_VEHICLE_VIEW, v->index);
- DeleteDepotHighlightOfVehicle(v);
delete v;
}