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
commit18df5480bac0333848655d189f14b83ddee17308 (patch)
tree1e00530805f82896deb28a4c007807f9c16e58c0
parentba1f3b4834a83efd63563d8d5fb7af7e06aeae5f (diff)
downloadopenttd-18df5480bac0333848655d189f14b83ddee17308.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;
}