summaryrefslogtreecommitdiff
path: root/src/roadveh_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-17 16:03:51 +0000
committerrubidium <rubidium@openttd.org>2009-11-17 16:03:51 +0000
commit9e84075db5085bcadf0d034770ec2be260a7c9ad (patch)
tree5931ee79dbd4c8e0a60a42cea3a155785b305ceb /src/roadveh_gui.cpp
parentddffeb791e13e1b1a9b9b7f4c5e8ae12705bbc03 (diff)
downloadopenttd-9e84075db5085bcadf0d034770ec2be260a7c9ad.tar.xz
(svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 7e874e108..941036ce4 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -147,6 +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;
}
if (v->index == selection) {