Changeset - r751:e37f8a5e0e36
[Not reviewed]
master
0 1 0
celestar - 19 years ago 2004-12-21 19:07:23
celestar@openttd.org
(svn r1207) -Fix: Compiler warning due to the modified catchment areas
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
airport_gui.c
Show inline comments
 
@@ -144,24 +144,25 @@ static void BuildAirportPickerWndProc(Wi
 
		// 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]);
 

	
 
     if (_patches.modified_catchment) {
 
       switch (sel) {
 
         case AT_OILRIG: rad = CA_AIR_OILPAD; break;
 
         case AT_HELIPORT: rad = CA_AIR_HELIPORT; break;
 
         case AT_SMALL:    rad = CA_AIR_SMALL; break;
 
         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);
 

	
 
		DrawWindowWidgets(w);
 
    // strings such as 'Size' and 'Coverage Area'
 
		DrawStringCentered(74, 16, STR_305B_SIZE, 0);
 
		DrawStringCentered(74, 78, STR_3066_COVERAGE_AREA_HIGHLIGHT, 0);
0 comments (0 inline, 0 general)