aircraft_gui.c
changeset 3157 3f35e2d9c8e3
parent 3049 d6109b5fd55d
child 3315 c9d989783c55
--- a/aircraft_gui.c	Tue Mar 07 07:51:05 2006 +0000
+++ b/aircraft_gui.c	Wed Mar 08 06:55:33 2006 +0000
@@ -65,7 +65,7 @@
 static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection)
 {
 	PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
-	DrawSprite(GetAircraftImage(v, 6) | pal, x + 25, y + 10);
+	DrawSprite(GetAircraftImage(v, DIR_W) | pal, x + 25, y + 10);
 	if (v->subtype == 0) DrawSprite(SPR_ROTOR_STOPPED, x + 25, y + 5);
 	if (v->index == selection) {
 		DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY);
@@ -730,7 +730,7 @@
 		if (v != NULL) {
 			WP(w,traindepot_d).sel = v->index;
 			SetWindowDirty(w);
-			SetObjectToPlaceWnd(GetVehiclePalette(v) | GetAircraftImage(v, 6), 4, w);
+			SetObjectToPlaceWnd(GetVehiclePalette(v) | GetAircraftImage(v, DIR_W), 4, w);
 		}
 		break;