summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 23:51:22 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 23:51:22 +0000
commit93a60d8157148f1d6bdbed57a04beab43e6994ab (patch)
treec4d3399f07f87fc301c1100ce008b78e619b1c74
parent264bbc30761e4eea4027947fa358d7c0773624f8 (diff)
downloadopenttd-93a60d8157148f1d6bdbed57a04beab43e6994ab.tar.xz
(svn r20197) -Fix [FS#3963]: GetNearbyTileInformation can be used to get the terrain type of a MP_VOID tile.
-rw-r--r--src/newgrf_commons.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp
index cbf54a24a..5a1de575f 100644
--- a/src/newgrf_commons.cpp
+++ b/src/newgrf_commons.cpp
@@ -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;