(svn r9400) -Codechange: Use some more representative enum names for landscape types.
This commit is contained in:
@@ -389,8 +389,8 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
|
||||
case 0x40: return GetPlatformInfoHelper(tile, false, false, false);
|
||||
case 0x41: return GetPlatformInfoHelper(tile, true, false, false);
|
||||
case 0x42: // Terrain and rail type
|
||||
return ((_opt.landscape == LT_HILLY && GetTileZ(tile) > GetSnowLine()) ? 4 : 0) |
|
||||
(_opt.landscape == LT_DESERT ? GetTropicZone(tile) : 0) |
|
||||
return ((_opt.landscape == LT_ARCTIC && GetTileZ(tile) > GetSnowLine()) ? 4 : 0) |
|
||||
(_opt.landscape == LT_TROPIC ? GetTropicZone(tile) : 0) |
|
||||
(GetRailType(tile) << 8);
|
||||
case 0x43: return st->owner; // Station owner
|
||||
case 0x44: return 2; // PBS status
|
||||
|
Reference in New Issue
Block a user