From 556c153a2d6ae0e7396ebf0ca61a9884de503fe4 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 26 Jan 2005 18:59:10 +0000 Subject: [PATCH] (svn r1686) Fix (Work around?) crash when generating tropical maps --- landscape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landscape.c b/landscape.c index 4541cfa70a..4d88353436 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))