diff options
author | rubidium <rubidium@openttd.org> | 2010-04-24 13:39:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-24 13:39:11 +0000 |
commit | f56ebd81c35beb0094c487cc3dc45dc0427fae46 (patch) | |
tree | 36776a247dae7d416030b82239b506698c94ce29 /src/station_cmd.cpp | |
parent | 21883a84d7883df5feb25d6536ec8f67a053fe42 (diff) | |
download | openttd-f56ebd81c35beb0094c487cc3dc45dc0427fae46.tar.xz |
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 13d16f962..0b928cfbe 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -22,6 +22,7 @@ #include "roadveh.h" #include "industry.h" #include "newgrf_cargo.h" +#include "newgrf_debug.h" #include "newgrf_station.h" #include "pathfinder/yapf/yapf_cache.h" #include "road_internal.h" /* For drawing catenary/checking road removal */ @@ -1412,6 +1413,7 @@ CommandCost RemoveFromRailBaseStation(TileArea ta, SmallVector<T *, 4> &affected } DoClearSquare(tile); + DeleteNewGRFInspectWindow(GSF_STATIONS, tile); if (keep_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt); st->rect.AfterRemoveTile(st, tile); @@ -1557,6 +1559,7 @@ CommandCost RemoveRailStation(T *st, DoCommandFlag flags) if (v != NULL) FreeTrainTrackReservation(v); } DoClearSquare(tile); + DeleteNewGRFInspectWindow(GSF_STATIONS, tile); AddTrackToSignalBuffer(tile, track, owner); YapfNotifyTrackLayoutChange(tile, track); if (v != NULL) TryPathReserve(v, true); @@ -2264,6 +2267,7 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags) if (flags & DC_EXEC) { DeleteAnimatedTile(tile_cur); DoClearSquare(tile_cur); + DeleteNewGRFInspectWindow(GSF_AIRPORTTILES, tile_cur); } } @@ -2295,6 +2299,7 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags) st->UpdateVirtCoord(); st->RecomputeIndustriesNear(); DeleteStationIfEmpty(st); + DeleteNewGRFInspectWindow(GSF_AIRPORTS, st->index); } return cost; |