Changeset - r14850:537311950e1a
[Not reviewed]
master
0 3 0
yexo - 15 years ago 2010-03-18 23:10:35
yexo@openttd.org
(svn r19456) -Codechange; increase the maximum number of airports
3 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/airport.h
Show inline comments
 
@@ -37,7 +37,8 @@ enum {
 
	AT_INTERCON      =   7,
 
	AT_HELISTATION   =   8,
 
	AT_OILRIG        =   9,
 
	NUM_AIRPORTS     =  10,
 
	NEW_AIRPORT_OFFSET = 10,
 
	NUM_AIRPORTS     =  128,
 
	AT_DUMMY         = 255
 
};
 

	
src/newgrf_airport.cpp
Show inline comments
 
@@ -63,7 +63,7 @@ void AirportSpec::ResetAirports()
 
{
 
	extern const AirportSpec _origin_airport_specs[];
 
	memset(&AirportSpec::specs, 0, sizeof(AirportSpec::specs));
 
	memcpy(&AirportSpec::specs, &_origin_airport_specs, sizeof(AirportSpec) * NUM_AIRPORTS);
 
	memcpy(&AirportSpec::specs, &_origin_airport_specs, sizeof(AirportSpec) * NEW_AIRPORT_OFFSET);
 
}
 

	
 
/**
src/table/airport_defaults.h
Show inline comments
 
@@ -404,7 +404,7 @@ extern const AirportSpec _origin_airport
 
	AS_GENERIC(&_airportfta_oilrig, NULL, 0, NULL, 0, 1, 1, 0, 4, 0, 0, ATP_TTDP_OILRIG, APC_HELIPORT, STR_NULL, false),
 
};
 

	
 
assert_compile(NUM_AIRPORTS == lengthof(_origin_airport_specs));
 
assert_compile(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs));
 

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