(svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits?
This commit is contained in:
@@ -452,9 +452,9 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
|
||||
case 0x43: return st->owner; // Station owner
|
||||
case 0x44:
|
||||
if (IsRailWaypointTile(tile)) {
|
||||
return GetDepotWaypointReservation(tile) ? 7 : 4;
|
||||
return HasDepotWaypointReservation(tile) ? 7 : 4;
|
||||
} else {
|
||||
return GetRailwayStationReservation(tile) ? 7 : 4; // PBS status
|
||||
return HasStationReservation(tile) ? 7 : 4; // PBS status
|
||||
}
|
||||
case 0x45:
|
||||
if (!HasBit(_svc.valid, 2)) { _svc.v45 = GetRailContinuationInfo(tile); SetBit(_svc.valid, 2); }
|
||||
|
Reference in New Issue
Block a user