mirror of https://github.com/OpenTTD/OpenTTD
(svn r17045) -Fix (r16867) [FS#3084]: Also 'p's can be important.
parent
38600459a5
commit
20520baffb
|
@ -234,7 +234,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po
|
||||||
Point offset;
|
Point offset;
|
||||||
int width = u->GetDisplayImageWidth(&offset);
|
int width = u->GetDisplayImageWidth(&offset);
|
||||||
SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
|
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;
|
px += width;
|
||||||
u = u->Next();
|
u = u->Next();
|
||||||
} while (u != NULL && u->IsArticulatedPart() && u->cargo_cap == 0);
|
} while (u != NULL && u->IsArticulatedPart() && u->cargo_cap == 0);
|
||||||
|
|
Loading…
Reference in New Issue