diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index 496e011cc5..b4e91d6881 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -459,7 +459,7 @@ uint32 GetNearbyTileInformation(TileIndex tile, bool grf_version8, uint32 mask) result |= tile_type << 24; } - if (mask & 0xFF00) { + if (mask & 0xFE00) { /* Return 0 if the tile is a land tile */ byte terrain_type = (HasTileWaterClass(tile) ? (GetWaterClass(tile) + 1) & 3 : 0) << 5 | GetTerrainType(tile) << 2 | (tile_type == MP_WATER ? 1 : 0) << 1; result |= terrain_type << 8;