equal
deleted
inserted
replaced
24 #include "date_func.h" |
24 #include "date_func.h" |
25 #include "player_func.h" |
25 #include "player_func.h" |
26 #include "animated_tile_func.h" |
26 #include "animated_tile_func.h" |
27 #include "functions.h" |
27 #include "functions.h" |
28 #include "tunnelbridge_map.h" |
28 #include "tunnelbridge_map.h" |
|
29 #include "rail_map.h" |
29 |
30 |
30 #include "table/sprites.h" |
31 #include "table/sprites.h" |
31 #include "table/strings.h" |
32 #include "table/strings.h" |
32 |
33 |
33 static StationClass _station_classes[STAT_CLASS_MAX]; |
34 static StationClass _station_classes[STAT_CLASS_MAX]; |
403 if (!HasBit(_svc.valid, 1)) { _svc.v41 = GetPlatformInfoHelper(tile, true, false, false); SetBit(_svc.valid, 1); } |
404 if (!HasBit(_svc.valid, 1)) { _svc.v41 = GetPlatformInfoHelper(tile, true, false, false); SetBit(_svc.valid, 1); } |
404 return _svc.v41; |
405 return _svc.v41; |
405 |
406 |
406 case 0x42: return GetTerrainType(tile) | (GetRailType(tile) << 8); |
407 case 0x42: return GetTerrainType(tile) | (GetRailType(tile) << 8); |
407 case 0x43: return st->owner; // Station owner |
408 case 0x43: return st->owner; // Station owner |
408 case 0x44: return 2; // PBS status |
409 case 0x44: |
|
410 if (IsTileType(tile, MP_RAILWAY) && IsRailWaypoint(tile)) { |
|
411 return GetDepotWaypointReservation(tile) ? 7 : 4; |
|
412 } else { |
|
413 return GetRailwayStationReservation(tile) ? 7 : 4; // PBS status |
|
414 } |
409 case 0x45: |
415 case 0x45: |
410 if (!HasBit(_svc.valid, 2)) { _svc.v45 = GetRailContinuationInfo(tile); SetBit(_svc.valid, 2); } |
416 if (!HasBit(_svc.valid, 2)) { _svc.v45 = GetRailContinuationInfo(tile); SetBit(_svc.valid, 2); } |
411 return _svc.v45; |
417 return _svc.v45; |
412 |
418 |
413 case 0x46: |
419 case 0x46: |