From 830af8ee77bbbedb23f4caa53c8b47c20235f1b2 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 17 Jan 2010 14:22:07 +0000 Subject: (svn r18845) -Codechange: introduce AirportTileSpec and use it for animation --- src/table/airport_defaults.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/table/airport_defaults.h') diff --git a/src/table/airport_defaults.h b/src/table/airport_defaults.h index 2876b5810..84b67eb78 100644 --- a/src/table/airport_defaults.h +++ b/src/table/airport_defaults.h @@ -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 -- cgit v1.2.3-54-g00ecf