mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r4749) - Newstations: add snowline support to variable 42.
This commit is contained in:
parent
b7e0ca4453
commit
e63634d332
@ -307,7 +307,9 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
|
||||
/* Calculated station variables */
|
||||
case 0x40: return GetPlatformInfoHelper(tile, false, false, false);
|
||||
case 0x41: return GetPlatformInfoHelper(tile, true, false, false);
|
||||
case 0x42: return GetRailType(tile) << 8; /* Rail type */
|
||||
case 0x42: /* Terrain and rail type */
|
||||
return ((_opt.landscape == LT_HILLY && GetTileZ(tile) > _opt.snow_line) ? 4 : 0) |
|
||||
(GetRailType(tile) << 8);
|
||||
case 0x43: return st->owner; /* Station owner */
|
||||
case 0x44: return 2; /* PBS status */
|
||||
case 0x46: return GetPlatformInfoHelper(tile, false, false, true);
|
||||
|
Loading…
Reference in New Issue
Block a user