equal
deleted
inserted
replaced
62 y += 10; |
62 y += 10; |
63 } |
63 } |
64 |
64 |
65 static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) |
65 static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) |
66 { |
66 { |
67 int image = GetAircraftImage(v, 6); |
67 PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
68 uint32 ormod = GetVehiclePalette(v); |
68 DrawSprite(GetAircraftImage(v, 6) | pal, x + 25, y + 10); |
69 if (v->vehstatus & VS_CRASHED) ormod = PALETTE_CRASH; |
|
70 DrawSprite(image | ormod, x + 25, y + 10); |
|
71 if (v->subtype == 0) DrawSprite(SPR_ROTOR_STOPPED, x + 25, y + 5); |
69 if (v->subtype == 0) DrawSprite(SPR_ROTOR_STOPPED, x + 25, y + 5); |
72 if (v->index == selection) { |
70 if (v->index == selection) { |
73 DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY); |
71 DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY); |
74 } |
72 } |
75 } |
73 } |