(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)
This commit is contained in:
truelight
2007-07-23 19:30:36 +00:00
parent 2418db4c23
commit 7031cc3c0b
4 changed files with 18 additions and 9 deletions

View File

@@ -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;