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/town_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/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index a77203014..47bd8b219 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -24,7 +24,7 @@ #include "unmovable_map.h" #include "variables.h" #include "genworld.h" -#include "newgrf.h" +#include "newgrf_debug.h" #include "newgrf_house.h" #include "newgrf_commons.h" #include "newgrf_text.h" @@ -98,6 +98,7 @@ Town::~Town() } DeleteSubsidyWith(ST_TOWN, this->index); + DeleteNewGRFInspectWindow(GSF_FAKE_TOWNS, this->index); CargoPacket::InvalidateAllFrom(ST_TOWN, this->index); MarkWholeScreenDirty(); } @@ -2210,6 +2211,8 @@ static void DoClearTownHouseHelper(TileIndex tile, Town *t, HouseID house) DecreaseBuildingCount(t, house); DoClearSquare(tile); DeleteAnimatedTile(tile); + + DeleteNewGRFInspectWindow(GSF_HOUSES, tile); } /** |