(svn r19455) -Codechange: split all airport information in Station to a seperate class
This commit is contained in:
@@ -524,11 +524,11 @@ uint32 Station::GetNewGRFVariable(const ResolverObject *object, byte variable, b
|
||||
}
|
||||
|
||||
case 0x8A: return this->had_vehicle_of_type;
|
||||
case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->GetAirportSpec()->ttd_airport_type : ATP_TTDP_LARGE;
|
||||
case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->airport.GetSpec()->ttd_airport_type : ATP_TTDP_LARGE;
|
||||
case 0xF2: return (this->truck_stops != NULL) ? this->truck_stops->status : 0;
|
||||
case 0xF3: return (this->bus_stops != NULL) ? 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.flags;
|
||||
case 0xF7: return GB(this->airport.flags, 8, 8);
|
||||
}
|
||||
|
||||
/* Handle cargo variables with parameter, 0x60 to 0x65 */
|
||||
|
Reference in New Issue
Block a user