summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-23 17:45:48 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-23 17:45:48 +0000
commitb718cae67d994f84e6ae29e7d9f38fa796ae3e8a (patch)
tree1e00530805f82896deb28a4c007807f9c16e58c0
parent9c16461c2980fe4ce5a9297ef434f6c4d7687bd8 (diff)
downloadopenttd-b718cae67d994f84e6ae29e7d9f38fa796ae3e8a.tar.xz
(svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly.
-rw-r--r--src/newgrf_commons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp
index 03557b6ff..944161a0a 100644
--- a/src/newgrf_commons.cpp
+++ b/src/newgrf_commons.cpp
@@ -265,7 +265,7 @@ void IndustryTileOverrideManager::SetEntitySpec(const IndustryTileSpec *its)
uint32 GetTerrainType(TileIndex tile)
{
switch (_opt.landscape) {
- case LT_TROPIC: return GetTropicZone(tile) == TROPICZONE_DESERT ? 1 : 2;
+ case LT_TROPIC: return GetTropicZone(tile);
case LT_ARCTIC: return GetTileZ(tile) > GetSnowLine() ? 4 : 0;
default: return 0;
}