File diff r22481:5e7607cf2f44 → r22482:804e13055d07
src/aircraft_gui.cpp
Show inline comments
 
@@ -95,13 +95,13 @@ void DrawAircraftImage(const Vehicle *v,
 
	bool helicopter = v->subtype == AIR_HELICOPTER;
 

	
 
	int y_offs = ScaleGUITrad(10);
 
	int heli_offs = 0;
 

	
 
	PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
	seq.Draw(x, y + y_offs, pal, v->vehstatus & VS_CRASHED);
 
	seq.Draw(x, y + y_offs, pal, (v->vehstatus & VS_CRASHED) != 0);
 
	if (helicopter) {
 
		const Aircraft *a = Aircraft::From(v);
 
		VehicleSpriteSeq rotor_seq;
 
		GetCustomRotorSprite(a, true, image_type, &rotor_seq);
 
		if (!rotor_seq.IsValid()) rotor_seq.Set(SPR_ROTOR_STOPPED);
 
		heli_offs = ScaleGUITrad(5);