summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-01-27 17:06:29 +0000
committerDarkvater <Darkvater@openttd.org>2006-01-27 17:06:29 +0000
commit3edea59a5803a53412acfdf4a6af061ae162bcf9 (patch)
treeeea9791edd17950242a205853a5cdec2d9a21c09
parentf14fa3f6e0f08045b1410be7d31b6501e0d88334 (diff)
downloadopenttd-3edea59a5803a53412acfdf4a6af061ae162bcf9.tar.xz
(svn r3453) - CodeChange: Also show the landinfo debug information when building in release mode; however it is shown at debug level 1.
-rw-r--r--misc_gui.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/misc_gui.c b/misc_gui.c
index c55255fdb..c2e19b2d6 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -157,16 +157,20 @@ static void Place_LandInfo(TileIndex tile)
GetAcceptedCargo(tile, lid.ac);
GetTileDesc(tile, &lid.td);
- #if defined(_DEBUG)
- DEBUG(misc, 0) ("TILE: %#x (%i,%i)", tile, TileX(tile), TileY(tile));
- DEBUG(misc, 0) ("TILE: %d ", tile);
- DEBUG(misc, 0) ("_type_height = %#x", _m[tile].type_height);
- DEBUG(misc, 0) ("m1 = %#x", _m[tile].m1);
- DEBUG(misc, 0) ("m2 = %#x", _m[tile].m2);
- DEBUG(misc, 0) ("m3 = %#x", _m[tile].m3);
- DEBUG(misc, 0) ("m4 = %#x", _m[tile].m4);
- DEBUG(misc, 0) ("m5 = %#x", _m[tile].m5);
- #endif
+ #if defined(_DEBUG)
+ # define LANDINFOD_LEVEL 0
+ #else
+ # define LANDINFOD_LEVEL 1
+ #endif
+ DEBUG(misc, LANDINFOD_LEVEL) ("TILE: %#x (%i,%i)", tile, TileX(tile), TileY(tile));
+ DEBUG(misc, LANDINFOD_LEVEL) ("type_height = %#x", _m[tile].type_height);
+ DEBUG(misc, LANDINFOD_LEVEL) ("m1 = %#x", _m[tile].m1);
+ DEBUG(misc, LANDINFOD_LEVEL) ("m2 = %#x", _m[tile].m2);
+ DEBUG(misc, LANDINFOD_LEVEL) ("m3 = %#x", _m[tile].m3);
+ DEBUG(misc, LANDINFOD_LEVEL) ("m4 = %#x", _m[tile].m4);
+ DEBUG(misc, LANDINFOD_LEVEL) ("m5 = %#x", _m[tile].m5);
+ DEBUG(misc, LANDINFOD_LEVEL) ("extra = %#x", _m[tile].extra);
+ #undef LANDINFOD_LEVEL
}
void PlaceLandBlockInfo(void)