From c8e8911ef676f503ac5789d3fefac1278cdef971 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 2 Sep 2008 15:20:38 +0000 Subject: (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') 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); -- cgit v1.2.3-54-g00ecf