summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-08-02 19:04:48 +0000
committerfrosch <frosch@openttd.org>2009-08-02 19:04:48 +0000
commit20520baffb708d558b8a9e4ce6074f00e5ebfae7 (patch)
treebf7c4a67a08fc4100bf5dda4880a2fce719da6a0 /src/train_gui.cpp
parent38600459a515a95bc82983003ec2c94931669613 (diff)
downloadopenttd-20520baffb708d558b8a9e4ce6074f00e5ebfae7.tar.xz
(svn r17045) -Fix (r16867) [FS#3084]: Also 'p's can be important.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 22efbe6d4..c2c6a8afd 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -234,7 +234,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po
Point offset;
int width = u->GetDisplayImageWidth(&offset);
SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
- DrawSprite(u->GetImage(DIR_W), pal, x + offset.x, y + 6 + offset.y);
+ DrawSprite(u->GetImage(DIR_W), pal, px + offset.x, y + 6 + offset.y);
px += width;
u = u->Next();
} while (u != NULL && u->IsArticulatedPart() && u->cargo_cap == 0);