Mercurial > hg > openttd
diff src/tile_map.h @ 10855:7881d9cd55ab draft
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
author | Yexo <Yexo@openttd.org> |
---|---|
date | Wed, 21 Jan 2009 02:31:55 +0000 |
parents | 39cf8eebfda5 |
children | bc7926153e19 |
line wrap: on
line diff
--- a/src/tile_map.h +++ b/src/tile_map.h @@ -10,6 +10,7 @@ #include "company_type.h" #include "map_func.h" #include "core/bitmath_func.hpp" +#include "settings_type.h" /** * Returns the height of a tile @@ -87,8 +88,9 @@ { assert(tile < MapSize()); /* VOID tiles (and no others) are exactly allowed at the lower left and right - * edges of the map */ - assert((TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY()) == (type == MP_VOID)); + * edges of the map. If _settings_game.construction.freeform_edges is true, + * the upper edges of the map are also VOID tiles. */ + assert((TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY() || (_settings_game.construction.freeform_edges && (TileX(tile) == 0 || TileY(tile) == 0))) == (type == MP_VOID)); SB(_m[tile].type_height, 4, 4, type); }