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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 14 years ago
parent 264bbc3076
commit 93a60d8157

@ -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