summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-08 20:56:45 +0000
committerrubidium <rubidium@openttd.org>2009-12-08 20:56:45 +0000
commite7810f8061a74e2da0e4537bac22e2179cb0a4b3 (patch)
tree0b109dafe1b8eef7d46a15da2c3eac7865d439d0 /src
parent0971f666ebcb7ea499614bf2e07ebb5a26220190 (diff)
downloadopenttd-e7810f8061a74e2da0e4537bac22e2179cb0a4b3.tar.xz
(svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 941036ce4..fdf24d121 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) {