diff options
author | rubidium <rubidium@openttd.org> | 2008-12-26 21:08:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-26 21:08:51 +0000 |
commit | 0c6c3311c9bd3e5544b632433c4d8416d6273848 (patch) | |
tree | dbb2d01a3da0060c340d6e2adcfcf1188c8f3891 /src/ship_cmd.cpp | |
parent | c34ce32f261fb145af2d2153f0e694ac7a99a80c (diff) | |
download | openttd-0c6c3311c9bd3e5544b632433c4d8416d6273848.tar.xz |
(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 5 |
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; } |