diff options
author | tron <tron@openttd.org> | 2006-05-20 15:13:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-05-20 15:13:27 +0000 |
commit | edb5e87e0c1dc116e5281ac775b2ca17e67654d3 (patch) | |
tree | ed501eeb08a1ccb519796aec762515649521aa43 /airport_gui.c | |
parent | 910aa90bd366d10df423f1d591b6bebb8a972256 (diff) | |
download | openttd-edb5e87e0c1dc116e5281ac775b2ca17e67654d3.tar.xz |
(svn r4918) Move the information about the size of airports from an global array into the struct which describes an airport
Diffstat (limited to 'airport_gui.c')
-rw-r--r-- | airport_gui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/airport_gui.c b/airport_gui.c index e22006e8d..0bf290716 100644 --- a/airport_gui.c +++ b/airport_gui.c @@ -147,6 +147,7 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e) int sel; int rad = 4; // default catchment radious uint32 avail_airports; + const AirportFTAClass* airport; if (WP(w,def_d).close) return; @@ -164,7 +165,8 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e) _selected_airport_type = sel; // select default the coverage area to 'Off' (8) w->click_state = ((1<<3) << sel) | ((1<<8) << _station_show_coverage); - SetTileSelectSize(_airport_size_x[sel],_airport_size_y[sel]); + airport = GetAirport(sel); + SetTileSelectSize(airport->size_x, airport->size_y); if (_patches.modified_catchment) { switch (sel) { |