Changeset - r2647:afc481bd37a3
[Not reviewed]
master
0 1 0
tron - 18 years ago 2005-11-15 11:08:10
tron@openttd.org
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
1 file changed with 2 insertions and 7 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -502,13 +502,8 @@ static void AircraftViewWndProc(Window *
 
		uint32 disabled = 1 << 8;
 
		StringID str;
 

	
 
		{
 
			TileIndex tile = v->tile;
 

	
 
			if (IsTileType(tile, MP_STATION) &&
 
					(_m[tile].m5 == 32 || _m[tile].m5 == 65) &&
 
					v->vehstatus&VS_STOPPED)
 
						disabled = 0;
 
		if (v->vehstatus & VS_STOPPED && IsAircraftHangarTile(v->tile)) {
 
			disabled = 0;
 
		}
 

	
 
		if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7;
0 comments (0 inline, 0 general)