From 93a60d8157148f1d6bdbed57a04beab43e6994ab Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 19 Jul 2010 23:51:22 +0000 Subject: [PATCH] (svn r20197) -Fix [FS#3963]: GetNearbyTileInformation can be used to get the terrain type of a MP_VOID tile. --- src/newgrf_commons.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index cbf54a24a3..5a1de575f0 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;