summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-26 18:59:10 +0000
committertron <tron@openttd.org>2005-01-26 18:59:10 +0000
commit8742b63fa1912fb55798f4f4d2fba41e07c92ef5 (patch)
tree3f3b101d4c29964724adad6837a06a0ead699653
parentac0ea378ff84e33f410863f308ff0eef053e1f5d (diff)
downloadopenttd-8742b63fa1912fb55798f4f4d2fba41e07c92ef5.tar.xz
(svn r1686) Fix (Work around?) crash when generating tropical maps
-rw-r--r--landscape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/landscape.c b/landscape.c
index 4541cfa70..4d8835343 100644
--- a/landscape.c
+++ b/landscape.c
@@ -637,7 +637,7 @@ static void CreateDesertOrRainForest(void)
for (tile = 0; tile != MapSize(); ++tile) {
for (data = _make_desert_or_rainforest_data;
data != endof(_make_desert_or_rainforest_data); ++data) {
- TileIndex t = tile + ToTileIndexDiff(*data);
+ TileIndex t = TILE_MASK(tile + ToTileIndexDiff(*data));
if (TileHeight(t) >= 4 || IsTileType(t, MP_WATER)) break;
}
if (data == endof(_make_desert_or_rainforest_data))