mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-21 22:53:19 +00:00
(svn r1686) Fix (Work around?) crash when generating tropical maps
This commit is contained in:
parent
ac0ea378ff
commit
8742b63fa1
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user