diff options
author | frosch <frosch@openttd.org> | 2016-10-16 14:58:38 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-10-16 14:58:38 +0000 |
commit | c175067ed9c17d43feaf356cd575dddddd699889 (patch) | |
tree | f865fa356c59ab450aa1c93a22f024f15d675224 /src/roadveh_gui.cpp | |
parent | d2393b4f6c89b75a90452fe68ab8a1cfbd8c353f (diff) | |
download | openttd-c175067ed9c17d43feaf356cd575dddddd699889.tar.xz |
(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r-- | src/roadveh_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 26027a889..c446db510 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -151,7 +151,7 @@ void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID se PaletteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u); VehicleSpriteSeq seq; u->GetImage(dir, image_type, &seq); - DrawSprite(seq.sprite, pal, px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y); + seq.Draw(px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y, pal, u->vehstatus & VS_CRASHED); } px += rtl ? -width : width; |