ship_gui.c
changeset 3049 b797ca543c13
parent 3040 c3473d1fb81f
child 3157 40de8616c04c
equal deleted inserted replaced
3048:9dd3128a6358 3049:b797ca543c13
    63 	y += 10;
    63 	y += 10;
    64 }
    64 }
    65 
    65 
    66 static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)
    66 static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)
    67 {
    67 {
    68 	int image = GetShipImage(v, 6);
    68 	DrawSprite(GetShipImage(v, 6) | GetVehiclePalette(v), x + 32, y + 10);
    69 	uint32 ormod = GetVehiclePalette(v);
       
    70 	DrawSprite(image | ormod, x + 32, y + 10);
       
    71 
    69 
    72 	if (v->index == selection) {
    70 	if (v->index == selection) {
    73 		DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY);
    71 		DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY);
    74 	}
    72 	}
    75 }
    73 }