diff options
author | truelight <truelight@openttd.org> | 2007-07-23 19:30:36 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-07-23 19:30:36 +0000 |
commit | 7031cc3c0bfc91ecb46af02a8aa2050977473230 (patch) | |
tree | bfad3a88dc72503d87b57da5c45379536699ab72 /src/clear_cmd.cpp | |
parent | 2418db4c23e5422f678b465a9bef85b1c2bded01 (diff) | |
download | openttd-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.cpp | 2 |
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; |