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/rail_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/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index de9b2543d..81bd3a5bc 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -19,6 +19,7 @@ #include "pathfinder/yapf/yapf_cache.h" #include "newgrf_engine.h" #include "landscape_type.h" +#include "newgrf_debug.h" #include "newgrf_railtype.h" #include "newgrf_commons.h" #include "train.h" @@ -537,6 +538,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, } owner = GetTileOwner(tile); MakeRoadNormal(tile, GetCrossingRoadBits(tile), GetRoadTypes(tile), GetTownIndex(tile), GetRoadOwner(tile, ROADTYPE_ROAD), GetRoadOwner(tile, ROADTYPE_TRAM)); + DeleteNewGRFInspectWindow(GSF_RAILTYPES, tile); } break; } @@ -579,6 +581,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, } else { DoClearSquare(tile); } + DeleteNewGRFInspectWindow(GSF_RAILTYPES, tile); } else { SetTrackBits(tile, present); SetTrackReservation(tile, GetRailReservationTrackBits(tile) & present); |