diff options
author | tron <tron@openttd.org> | 2005-01-26 18:59:10 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-26 18:59:10 +0000 |
commit | 556c153a2d6ae0e7396ebf0ca61a9884de503fe4 (patch) | |
tree | 3f3b101d4c29964724adad6837a06a0ead699653 /landscape.c | |
parent | 0ec604ad0f429c194ceba4de951e30313266e28e (diff) | |
download | openttd-556c153a2d6ae0e7396ebf0ca61a9884de503fe4.tar.xz |
(svn r1686) Fix (Work around?) crash when generating tropical maps
Diffstat (limited to 'landscape.c')
-rw-r--r-- | landscape.c | 2 |
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)) |