diff options
author | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
commit | c8e8911ef676f503ac5789d3fefac1278cdef971 (patch) | |
tree | e7050537d14303dbc6bc9a461ff38931861cc4aa /src/depot_gui.cpp | |
parent | cbe397388f0ef537b61095b05ee4edfe9dd92202 (diff) | |
download | openttd-c8e8911ef676f503ac5789d3fefac1278cdef971.tar.xz |
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 54e9519a3..f09386a3a 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -281,7 +281,7 @@ struct DepotWindow : Window { case VEH_ROAD: DrawRoadVehImage( v, x + 24, sprite_y, this->sel, 1); break; case VEH_SHIP: DrawShipImage( v, x + 19, sprite_y - 1, this->sel); break; case VEH_AIRCRAFT: { - const Sprite *spr = GetSprite(v->GetImage(DIR_W)); + const Sprite *spr = GetSprite(v->GetImage(DIR_W), ST_NORMAL); DrawAircraftImage(v, x + 12, y + max(spr->height + spr->y_offs - 14, 0), // tall sprites needs an y offset this->sel); |