summaryrefslogtreecommitdiff
path: root/airport_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 20:23:05 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 20:23:05 +0000
commitffed7d6834dfd4d6f7f980b73e485a83f29cdcd9 (patch)
treeca01fb3e24b11a8cf374a38ff96a7b3a688eeeaa /airport_gui.c
parentc330e4203e21a6bf9a8415d525bd5e513fdd913d (diff)
downloadopenttd-ffed7d6834dfd4d6f7f980b73e485a83f29cdcd9.tar.xz
(svn r1262) -Fix: [1088996] kill some warnings for MinGW (luzi82)
Diffstat (limited to 'airport_gui.c')
-rw-r--r--airport_gui.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/airport_gui.c b/airport_gui.c
index 235cb7494..fea726ef6 100644
--- a/airport_gui.c
+++ b/airport_gui.c
@@ -122,11 +122,10 @@ void ShowBuildAirToolbar()
static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
{
- int rad;
-
switch(e->event) {
case WE_PAINT: {
int sel;
+ int rad = 4; // default catchment radious
if (WP(w,def_d).close)
return;
@@ -154,12 +153,8 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
case AT_LARGE: rad = CA_AIR_LARGE; break;
case AT_METROPOLITAN: rad = CA_AIR_METRO; break;
case AT_INTERNATIONAL: rad = CA_AIR_INTER; break;
- default: rad = 4; break;
}
- } else {
- rad = 4;
- }
-
+ }
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);