(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
authorpeter1138
Wed, 24 Jan 2007 15:01:20 +0000
changeset 5825 5fc4d2f7be46
parent 5824 8398b44ad3bc
child 5826 b3f88b8cf0a2
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
src/newgrf_station.cpp
--- a/src/newgrf_station.cpp	Wed Jan 24 14:32:20 2007 +0000
+++ b/src/newgrf_station.cpp	Wed Jan 24 15:01:20 2007 +0000
@@ -370,6 +370,7 @@
 		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 */