Changeset - r14856:49dbd79b7511
[Not reviewed]
master
0 3 0
yexo - 14 years ago 2010-03-19 00:34:38
yexo@openttd.org
(svn r19462) -Codechange: use the AS_GENERIC macro also for the dummy airport
3 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airport.cpp
Show inline comments
 
@@ -23,8 +23,6 @@ static AirportClass _airport_classes[APC
 

	
 
AirportOverrideManager _airport_mngr(NEW_AIRPORT_OFFSET, NUM_AIRPORTS, AT_INVALID);
 

	
 
AirportSpec AirportSpec::dummy = {NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, STR_NULL, ATP_TTDP_LARGE, APC_BEGIN, false, {AT_INVALID, 0, NULL, NULL, AT_INVALID}};
 

	
 
AirportSpec AirportSpec::specs[NUM_AIRPORTS];
 

	
 
/**
src/station_base.h
Show inline comments
 
@@ -60,7 +60,6 @@ struct Airport : public TileArea {
 

	
 
	const AirportFTAClass *GetFTA() const
 
	{
 
		if (this->tile == INVALID_TILE) return GetAirport(AT_DUMMY);
 
		return this->GetSpec()->fsm;
 
	}
 
};
src/table/airport_defaults.h
Show inline comments
 
@@ -406,6 +406,8 @@ extern const AirportSpec _origin_airport
 

	
 
assert_compile(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs));
 

	
 
AirportSpec AirportSpec::dummy = AS_GENERIC(&_airportfta_dummy, NULL, 0, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, ATP_TTDP_LARGE, APC_BEGIN, STR_NULL, false);
 

	
 
#undef AS
 
#undef AS_ND
 
#undef AS_GENERIC
0 comments (0 inline, 0 general)