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
commitd6933998e465be258c304cb30cbbc3d3d54f5ae9 (patch)
treeeea9791edd17950242a205853a5cdec2d9a21c09
parent7e604b72db5414f6ba296707b33d96fc4eb65820 (diff)
downloadopenttd-d6933998e465be258c304cb30cbbc3d3d54f5ae9.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)