# HG changeset patch # User rubidium # Date 2009-12-08 20:56:45 # Node ID 84d21214ad4a57dcfcdf744434deb2b7359b2d75 # Parent 923e0ddb249399fa56e305716b411363e9aecb0e (svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -147,7 +147,7 @@ void DrawRoadVehImage(const Vehicle *v, DrawSprite(u->GetImage(dir), pal, pos + (rtl ? -offset.x : offset.x), y + 6 + offset.y); pos += rtl ? -width : width; - spent_width += max_width; + spent_width += width; } if (v->index == selection) {