Mercurial > hg > openttd
changeset 2898:d660a8694c6b draft
(svn r3453) - CodeChange: Also show the landinfo debug information when building in release mode; however it is shown at debug level 1.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Fri, 27 Jan 2006 17:06:29 +0000 |
parents | bed7bdb0d5ef |
children | a46e8dc91272 |
files | misc_gui.c |
diffstat | 1 files changed, 14 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/misc_gui.c +++ b/misc_gui.c @@ -157,16 +157,20 @@ 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)