File diff r26037:b0d2c9388708 → r26038:ced62dd5d288
src/aircraft_gui.cpp
Show inline comments
 
@@ -97,13 +97,13 @@ void DrawAircraftImage(const Vehicle *v,
 

	
 
	PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
	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);
 
		GetCustomRotorSprite(a, image_type, &rotor_seq);
 
		if (!rotor_seq.IsValid()) rotor_seq.Set(SPR_ROTOR_STOPPED);
 
		heli_offs = ScaleGUITrad(5);
 
		rotor_seq.Draw(x, y + y_offs - heli_offs, PAL_NONE, false);
 
	}
 
	if (v->index == selection) {
 
		x += x_offs;