aircraft_gui.c
changeset 2647 c3a5b4c7a5aa
parent 2639 8a7342eb3a78
child 2725 5c632bc5be28
equal deleted inserted replaced
2646:a91fd482fce5 2647:c3a5b4c7a5aa
   500 	case WE_PAINT: {
   500 	case WE_PAINT: {
   501 		const Vehicle* v = GetVehicle(w->window_number);
   501 		const Vehicle* v = GetVehicle(w->window_number);
   502 		uint32 disabled = 1 << 8;
   502 		uint32 disabled = 1 << 8;
   503 		StringID str;
   503 		StringID str;
   504 
   504 
   505 		{
   505 		if (v->vehstatus & VS_STOPPED && IsAircraftHangarTile(v->tile)) {
   506 			TileIndex tile = v->tile;
   506 			disabled = 0;
   507 
       
   508 			if (IsTileType(tile, MP_STATION) &&
       
   509 					(_m[tile].m5 == 32 || _m[tile].m5 == 65) &&
       
   510 					v->vehstatus&VS_STOPPED)
       
   511 						disabled = 0;
       
   512 		}
   507 		}
   513 
   508 
   514 		if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7;
   509 		if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7;
   515 		w->disabled_state = disabled;
   510 		w->disabled_state = disabled;
   516 
   511