mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
Fix: Road stop availability callback (#12931)
This commit is contained in:
parent
d5ff6b4156
commit
5c243ee8f0
@ -101,7 +101,7 @@ static bool IsRoadStopEverAvailable(const RoadStopSpec *spec, StationType type)
|
||||
static bool IsRoadStopAvailable(const RoadStopSpec *spec, StationType type)
|
||||
{
|
||||
if (spec == nullptr) return true;
|
||||
if (IsRoadStopEverAvailable(spec, type)) return true;
|
||||
if (!IsRoadStopEverAvailable(spec, type)) return false;
|
||||
|
||||
if (!HasBit(spec->callback_mask, CBM_ROAD_STOP_AVAIL)) return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user