src/airport.cpp
branchgamebalance
changeset 9895 7bd07f43b0e3
parent 6443 b8f06d8eb7be
child 6719 4cc327ad39d5
equal deleted inserted replaced
9894:70d78ac95d6c 9895:7bd07f43b0e3
    30 static AirportFTAClass *HeliDepot;
    30 static AirportFTAClass *HeliDepot;
    31 static AirportFTAClass *IntercontinentalAirport;
    31 static AirportFTAClass *IntercontinentalAirport;
    32 static AirportFTAClass *HeliStation;
    32 static AirportFTAClass *HeliStation;
    33 
    33 
    34 
    34 
    35 void InitializeAirports(void)
    35 void InitializeAirports()
    36 {
    36 {
    37 	CountryAirport = new AirportFTAClass(
    37 	CountryAirport = new AirportFTAClass(
    38 		_airport_moving_data_country,
    38 		_airport_moving_data_country,
    39 		_airport_terminal_country,
    39 		_airport_terminal_country,
    40 		NULL,
    40 		NULL,
   173 		0,
   173 		0,
   174 		4
   174 		4
   175 	);
   175 	);
   176 }
   176 }
   177 
   177 
   178 void UnInitializeAirports(void)
   178 void UnInitializeAirports()
   179 {
   179 {
   180 	delete CountryAirport;
   180 	delete CountryAirport;
   181 	delete CityAirport;
   181 	delete CityAirport;
   182 	delete Heliport;
   182 	delete Heliport;
   183 	delete MetropolitanAirport;
   183 	delete MetropolitanAirport;
   465 		case AT_HELISTATION:   return HeliStation;
   465 		case AT_HELISTATION:   return HeliStation;
   466 	}
   466 	}
   467 }
   467 }
   468 
   468 
   469 
   469 
   470 uint32 GetValidAirports(void)
   470 uint32 GetValidAirports()
   471 {
   471 {
   472 	uint32 mask = 0;
   472 	uint32 mask = 0;
   473 
   473 
   474 	if (_cur_year <  1960 || _patches.always_small_airport) SETBIT(mask, 0);  // small airport
   474 	if (_cur_year <  1960 || _patches.always_small_airport) SETBIT(mask, 0);  // small airport
   475 	if (_cur_year >= 1955) SETBIT(mask, 1); // city airport
   475 	if (_cur_year >= 1955) SETBIT(mask, 1); // city airport