summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-24 15:01:20 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-24 15:01:20 +0000
commit20e0a91506898391fb6e172e038261f8c5598d35 (patch)
treea190ff82f87c9480b5e0842ba8ddb4440e124d26 /src
parent8c098db7a81546f3154b845e123bfcb2731d4f35 (diff)
downloadopenttd-20e0a91506898391fb6e172e038261f8c5598d35.tar.xz
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_station.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 1e0ed1ef0..b70146fa9 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -370,6 +370,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
case 0x41: return GetPlatformInfoHelper(tile, true, false, false);
case 0x42: /* Terrain and rail type */
return ((_opt.landscape == LT_HILLY && GetTileZ(tile) > _opt.snow_line) ? 4 : 0) |
+ (_opt.landscape == LT_DESERT ? GetTropicZone(tile) : 0) |
(GetRailType(tile) << 8);
case 0x43: return st->owner; /* Station owner */
case 0x44: return 2; /* PBS status */