Codechange: Use EnumBitSet for RoadStopStatusFlags. (#14068)

This commit is contained in:
Peter Nelson
2025-04-21 20:16:23 +01:00
committed by GitHub
parent 81edd1123a
commit 3aa82d5e63
4 changed files with 43 additions and 38 deletions
+2 -2
View File
@@ -436,8 +436,8 @@ uint32_t Station::GetNewGRFVariable(const ResolverObject &object, uint8_t variab
case 0x8A: return this->had_vehicle_of_type;
case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->airport.GetSpec()->ttd_airport_type : ATP_TTDP_LARGE;
case 0xF2: return (this->truck_stops != nullptr) ? this->truck_stops->status : 0;
case 0xF3: return (this->bus_stops != nullptr) ? this->bus_stops->status : 0;
case 0xF2: return (this->truck_stops != nullptr) ? this->truck_stops->status.base() : 0;
case 0xF3: return (this->bus_stops != nullptr) ? this->bus_stops->status.base() : 0;
case 0xF6: return this->airport.blocks.base();
case 0xF7: return GB(this->airport.blocks.base(), 8, 8);
}