diff options
author | smatz <smatz@openttd.org> | 2008-06-01 15:08:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-01 15:08:14 +0000 |
commit | 69ebefe1aced0abd8885d4a30fa0387c0cafd5cc (patch) | |
tree | a69876051417b114e25b34280ada013d1522cee1 /src/town_cmd.cpp | |
parent | 462384651566943a1d14f49ab988ae6af439c94c (diff) | |
download | openttd-69ebefe1aced0abd8885d4a30fa0387c0cafd5cc.tar.xz |
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index a8b6d9135..c3dc04842 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1639,11 +1639,7 @@ HouseZonesBits GetTownRadiusGroup(const Town *t, TileIndex tile) */ static inline void ClearMakeHouseTile(TileIndex tile, TownID tid, byte counter, byte stage, HouseID type, byte random_bits) { - #if !defined(NDEBUG) || defined(WITH_ASSERT) - CommandCost cc = - #endif /* !defined(NDEBUG) || defined(WITH_ASSERT) */ - - DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR); + CommandCost cc = DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR); assert(CmdSucceeded(cc)); |