summaryrefslogtreecommitdiff
path: root/src/roadveh_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-12-10 14:33:58 +0000
committerfrosch <frosch@openttd.org>2016-12-10 14:33:58 +0000
commit149adc9cc1b1ffa4b1a37e17deec72b0b6004337 (patch)
treea758b1d693dbd6574fcadb05631edc0f8570a36b /src/roadveh_gui.cpp
parent108a0fc0d73c02220354a287d0faa12f160c52c1 (diff)
downloadopenttd-149adc9cc1b1ffa4b1a37e17deec72b0b6004337.tar.xz
(svn r27689) -Fix: MSVC warnings.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index c446db510..63e054958 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);
- seq.Draw(px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y, pal, u->vehstatus & VS_CRASHED);
+ seq.Draw(px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y, pal, (u->vehstatus & VS_CRASHED) != 0);
}
px += rtl ? -width : width;