Codechange: Use EnumBitSet for Airport blocks.
This commit is contained in:
committed by
Peter Nelson
parent
9049710051
commit
f309b90a1d
@@ -416,8 +416,8 @@ uint32_t Station::GetNewGRFVariable(const ResolverObject &object, uint8_t variab
|
||||
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 0xF6: return this->airport.flags;
|
||||
case 0xF7: return GB(this->airport.flags, 8, 8);
|
||||
case 0xF6: return this->airport.blocks.base();
|
||||
case 0xF7: return GB(this->airport.blocks.base(), 8, 8);
|
||||
}
|
||||
|
||||
/* Handle cargo variables with parameter, 0x60 to 0x65 and 0x69 */
|
||||
|
||||
Reference in New Issue
Block a user