(svn r18845) -Codechange: introduce AirportTileSpec and use it for animation
This commit is contained in:
@@ -388,7 +388,7 @@ static AirportTileTable *_tile_table_helistation[] = {
|
||||
#define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise) \
|
||||
AS_GENERIC(_tile_table_##ap_name, _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), size_x, size_y, noise, catchment, min_year, max_year)
|
||||
|
||||
AirportSpec _origin_airport_specs[NUM_AIRPORTS] = {
|
||||
static const AirportSpec _origin_airport_specs[] = {
|
||||
AS(country, 4, 3, 0, 1959, 4, 3),
|
||||
AS(city, 6, 6, 1960, MAX_YEAR, 5, 5),
|
||||
AS_ND(heliport, 1, 1, 1963, MAX_YEAR, 4, 1),
|
||||
@@ -400,6 +400,8 @@ AirportSpec _origin_airport_specs[NUM_AIRPORTS] = {
|
||||
AS(helistation, 4, 2, 1980, MAX_YEAR, 4, 3),
|
||||
};
|
||||
|
||||
assert_compile(NUM_AIRPORTS == lengthof(_origin_airport_specs));
|
||||
|
||||
#undef AS
|
||||
#undef AS_ND
|
||||
#undef AS_GENERIC
|
||||
|
||||
Reference in New Issue
Block a user