(svn r20197) -Fix [FS#3963]: GetNearbyTileInformation can be used to get the terrain type of a MP_VOID tile.

This commit is contained in:
rubidium
2010-07-19 23:51:22 +00:00
parent 34c580ee96
commit d28515d16c

View File

@@ -322,6 +322,7 @@ uint32 GetTerrainType(TileIndex tile, bool upper_halftile)
has_snow = (GetTileMaxZ(tile) > GetSnowLine()); has_snow = (GetTileMaxZ(tile) > GetSnowLine());
break; break;
case MP_VOID:
case MP_WATER: case MP_WATER:
has_snow = (GetTileZ(tile) > GetSnowLine()); has_snow = (GetTileZ(tile) > GetSnowLine());
break; break;