changeset 13904:480eaf76e5ce draft

(svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows
author rubidium <rubidium@openttd.org>
date Tue, 08 Dec 2009 20:56:45 +0000
parents 2d3268d0ddd1
children eb3e25c07db1
files src/roadveh_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -147,7 +147,7 @@
 		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) {