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

pull/155/head
rubidium 14 years ago
parent 34c580ee96
commit d28515d16c

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

Loading…
Cancel
Save