roadveh_gui.c
changeset 3157 3f35e2d9c8e3
parent 3049 d6109b5fd55d
child 3236 004a4e2bf30c
--- a/roadveh_gui.c	Tue Mar 07 07:51:05 2006 +0000
+++ b/roadveh_gui.c	Wed Mar 08 06:55:33 2006 +0000
@@ -65,7 +65,7 @@
 static void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection)
 {
 	PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
-	DrawSprite(GetRoadVehImage(v, 6) | pal, x + 14, y + 6);
+	DrawSprite(GetRoadVehImage(v, DIR_W) | pal, x + 14, y + 6);
 
 	if (v->index == selection) {
 		DrawFrameRect(x - 1, y - 1, x + 28, y + 12, 15, FR_BORDERONLY);
@@ -636,7 +636,7 @@
 		if (v != NULL) {
 			WP(w,traindepot_d).sel = v->index;
 			SetWindowDirty(w);
-			SetObjectToPlaceWnd(GetVehiclePalette(v) | GetRoadVehImage(v, 6), 4, w);
+			SetObjectToPlaceWnd(GetVehiclePalette(v) | GetRoadVehImage(v, DIR_W), 4, w);
 		}
 		break;