diff options
author | rubidium <rubidium@openttd.org> | 2007-07-01 19:11:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-01 19:11:47 +0000 |
commit | 83a880c882992efb1b949b26ac881abc3825964f (patch) | |
tree | 2e6180dd4e262fcc66cf94a5d26c4c6fb7df642f /src/aircraft_gui.cpp | |
parent | c49fd0957d9e0fbecd365b2c86e82a1a37625921 (diff) | |
download | openttd-83a880c882992efb1b949b26ac881abc3825964f.tar.xz |
(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image.
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index cea5097f0..c02a21346 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -25,7 +25,7 @@ void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) { SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); - DrawSprite(GetAircraftImage(v, DIR_W), pal, x + 25, y + 10); + DrawSprite(v->GetImage(DIR_W), pal, x + 25, y + 10); if (v->subtype == AIR_HELICOPTER) { SpriteID rotor_sprite = GetCustomRotorSprite(v, true); if (rotor_sprite == 0) rotor_sprite = SPR_ROTOR_STOPPED; |