From e7810f8061a74e2da0e4537bac22e2179cb0a4b3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 8 Dec 2009 20:56:45 +0000 Subject: [PATCH] (svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows --- src/roadveh_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 941036ce40..fdf24d1212 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -147,7 +147,7 @@ void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID se 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) {