Changeset - r5825:f0c5e2105820
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-01-24 15:01:20
peter1138@openttd.org
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -370,6 +370,7 @@ static uint32 StationGetVariable(const R
 
		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 */
0 comments (0 inline, 0 general)