equal
deleted
inserted
replaced
23 #include "newgrf_engine.h" |
23 #include "newgrf_engine.h" |
24 |
24 |
25 void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) |
25 void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) |
26 { |
26 { |
27 SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
27 SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
28 DrawSprite(GetAircraftImage(v, DIR_W), pal, x + 25, y + 10); |
28 DrawSprite(v->GetImage(DIR_W), pal, x + 25, y + 10); |
29 if (v->subtype == AIR_HELICOPTER) { |
29 if (v->subtype == AIR_HELICOPTER) { |
30 SpriteID rotor_sprite = GetCustomRotorSprite(v, true); |
30 SpriteID rotor_sprite = GetCustomRotorSprite(v, true); |
31 if (rotor_sprite == 0) rotor_sprite = SPR_ROTOR_STOPPED; |
31 if (rotor_sprite == 0) rotor_sprite = SPR_ROTOR_STOPPED; |
32 DrawSprite(rotor_sprite, PAL_NONE, x + 25, y + 5); |
32 DrawSprite(rotor_sprite, PAL_NONE, x + 25, y + 5); |
33 } |
33 } |