diff options
author | yexo <yexo@openttd.org> | 2010-01-17 14:22:07 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-17 14:22:07 +0000 |
commit | 830af8ee77bbbedb23f4caa53c8b47c20235f1b2 (patch) | |
tree | c1ff6197676c450a2487b608dc646bcb3df7b3ae /src/table/airport_defaults.h | |
parent | f920415752e3b9e4e18dcd602e535d0c9b49e5d8 (diff) | |
download | openttd-830af8ee77bbbedb23f4caa53c8b47c20235f1b2.tar.xz |
(svn r18845) -Codechange: introduce AirportTileSpec and use it for animation
Diffstat (limited to 'src/table/airport_defaults.h')
-rw-r--r-- | src/table/airport_defaults.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |