diff options
author | rubidium <rubidium@openttd.org> | 2010-08-18 18:52:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-18 18:52:16 +0000 |
commit | 019878118d11a6596eeab608c361dfea06c3f1ff (patch) | |
tree | 4675f56eaa3968827b3a98a1dd924f1de7c4bd13 /src/station_cmd.cpp | |
parent | e2422945301452421ede848aa67a2ff47ed03d13 (diff) | |
download | openttd-019878118d11a6596eeab608c361dfea06c3f1ff.tar.xz |
(svn r20545) -Codechange: make sure an OrderBackup gets cleared when the depot it belongs to gets removed, the depot window gets closed or when another vehicle gets sold in a depot
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 77d8619d2..aa77f2327 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -49,6 +49,7 @@ #include "newgrf.h" #include "table/airporttile_ids.h" #include "newgrf_airporttiles.h" +#include "order_backup.h" #include "table/strings.h" @@ -2287,6 +2288,7 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags) cost.AddCost(_price[PR_CLEAR_STATION_AIRPORT]); if (flags & DC_EXEC) { + if (IsHangarTile(tile_cur)) OrderBackup::Reset(tile_cur); DeleteAnimatedTile(tile_cur); DoClearSquare(tile_cur); DeleteNewGRFInspectWindow(GSF_AIRPORTTILES, tile_cur); |