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
commitb0d618c66b637b0b700159ffaef700d1c6a8c9fe (patch)
treebfad3a88dc72503d87b57da5c45379536699ab72 /src/clear_cmd.cpp
parent33d78635efdc6458e72f96f33d169ec2e7e7cde6 (diff)
downloadopenttd-b0d618c66b637b0b700159ffaef700d1c6a8c9fe.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;