(svn r4749) - Newstations: add snowline support to variable 42.

This commit is contained in:
peter1138 2006-05-06 09:43:38 +00:00
parent b7e0ca4453
commit e63634d332
1 changed files with 3 additions and 1 deletions

View File

@ -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);