aircraft_gui.c
changeset 4056 30ceffc75059
parent 4012 ad6a6f29e890
child 4077 d3022f976946
--- a/aircraft_gui.c	Thu Jun 22 21:03:19 2006 +0000
+++ b/aircraft_gui.c	Thu Jun 22 21:15:27 2006 +0000
@@ -79,7 +79,11 @@
 {
 	PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 	DrawSprite(GetAircraftImage(v, DIR_W) | pal, x + 25, y + 10);
-	if (v->subtype == 0) DrawSprite(SPR_ROTOR_STOPPED, x + 25, y + 5);
+	if (v->subtype == 0) {
+		SpriteID rotor_sprite = GetCustomRotorSprite(v, true);
+		if (rotor_sprite == 0) rotor_sprite = SPR_ROTOR_STOPPED;
+		DrawSprite(rotor_sprite, x + 25, y + 5);
+	}
 	if (v->index == selection) {
 		DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY);
 	}