summaryrefslogtreecommitdiff
path: root/src/clear_cmd.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-07-23 19:30:36 +0000
committertruelight <truelight@openttd.org>2007-07-23 19:30:36 +0000
commit7031cc3c0bfc91ecb46af02a8aa2050977473230 (patch)
treebfad3a88dc72503d87b57da5c45379536699ab72 /src/clear_cmd.cpp
parent2418db4c23e5422f678b465a9bef85b1c2bded01 (diff)
downloadopenttd-7031cc3c0bfc91ecb46af02a8aa2050977473230.tar.xz
(svn r10665) -Codechange: replace magic 15 with MAX_TILE_HEIGHT (bilbo)
-Codechange: replace magic 13 with MAX_SNOWLINE_HEIGHT (bilbo) -Codechange: assure _map_height_bits is always of correct size (Rubidium)
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r--src/clear_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp
index 7b95d085a..ed04ac8e8 100644
--- a/src/clear_cmd.cpp
+++ b/src/clear_cmd.cpp
@@ -179,7 +179,7 @@ static bool TerraformTileHeight(TerraformerState *ts, TileIndex tile, int height
_error_message = STR_1004_TOO_HIGH;
- if (height > 15) return false;
+ if (height > MAX_TILE_HEIGHT) return false;
nh = TerraformGetHeightOfTile(ts, tile);
if (nh < 0 || height == nh) return false;