summaryrefslogtreecommitdiff
path: root/airport_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-05-20 15:13:27 +0000
committertron <tron@openttd.org>2006-05-20 15:13:27 +0000
commitedb5e87e0c1dc116e5281ac775b2ca17e67654d3 (patch)
treeed501eeb08a1ccb519796aec762515649521aa43 /airport_gui.c
parent910aa90bd366d10df423f1d591b6bebb8a972256 (diff)
downloadopenttd-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.c4
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) {