diff options
author | frosch <frosch@openttd.org> | 2009-08-02 19:04:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-08-02 19:04:48 +0000 |
commit | 20520baffb708d558b8a9e4ce6074f00e5ebfae7 (patch) | |
tree | bf7c4a67a08fc4100bf5dda4880a2fce719da6a0 | |
parent | 38600459a515a95bc82983003ec2c94931669613 (diff) | |
download | openttd-20520baffb708d558b8a9e4ce6074f00e5ebfae7.tar.xz |
(svn r17045) -Fix (r16867) [FS#3084]: Also 'p's can be important.
-rw-r--r-- | src/train_gui.cpp | 2 |
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); |