mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4749) - Newstations: add snowline support to variable 42.
This commit is contained in:
parent
3cdd2a637b
commit
9b7ac6acb6
@ -307,7 +307,9 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
|
|||||||
/* Calculated station variables */
|
/* Calculated station variables */
|
||||||
case 0x40: return GetPlatformInfoHelper(tile, false, false, false);
|
case 0x40: return GetPlatformInfoHelper(tile, false, false, false);
|
||||||
case 0x41: return GetPlatformInfoHelper(tile, true, 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 0x43: return st->owner; /* Station owner */
|
||||||
case 0x44: return 2; /* PBS status */
|
case 0x44: return 2; /* PBS status */
|
||||||
case 0x46: return GetPlatformInfoHelper(tile, false, false, true);
|
case 0x46: return GetPlatformInfoHelper(tile, false, false, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user