Codechange: Use EnumBitSet for callback masks.
This commit is contained in:
committed by
Peter Nelson
parent
1dd4adc50c
commit
40aeedeade
+1
-1
@@ -83,7 +83,7 @@ static void ShowSignalBuilder(Window *parent);
|
||||
*/
|
||||
static bool IsStationAvailable(const StationSpec *statspec)
|
||||
{
|
||||
if (statspec == nullptr || !HasBit(statspec->callback_mask, CBM_STATION_AVAIL)) return true;
|
||||
if (statspec == nullptr || !statspec->callback_mask.Test(StationCallbackMask::Avail)) return true;
|
||||
|
||||
uint16_t cb_res = GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, nullptr, INVALID_TILE);
|
||||
if (cb_res == CALLBACK_FAILED) return true;
|
||||
|
||||
Reference in New Issue
Block a user