airport_gui.c
changeset 792 d8a4164fdb14
parent 787 6b53b25082d2
child 867 581154a08a78
--- a/airport_gui.c	Thu Dec 23 19:50:01 2004 +0000
+++ b/airport_gui.c	Thu Dec 23 20:23:05 2004 +0000
@@ -122,11 +122,10 @@
 
 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 @@
          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);