summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-07-28 00:19:49 +0000
committerglx <glx@openttd.org>2007-07-28 00:19:49 +0000
commit94fa0ec289450c893ab12970dff0155acc4e894a (patch)
tree882ac205c479f5c5a0817e1c61310d7861ee5f64 /src/vehicle.cpp
parent5eb4036eb27ad87d281f8671285abb0409ba4ee7 (diff)
downloadopenttd-94fa0ec289450c893ab12970dff0155acc4e894a.tar.xz
(svn r10714) -Fix r10696: MSVC performance warning
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index beeaafe31..d01494927 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -859,7 +859,7 @@ static void DoDrawVehicle(const Vehicle *v)
}
AddSortableSpriteToDraw(image, pal, v->x_pos + v->x_offs, v->y_pos + v->y_offs,
- v->sprite_width, v->sprite_height, v->z_height, v->z_pos, v->vehstatus & VS_SHADOW);
+ v->sprite_width, v->sprite_height, v->z_height, v->z_pos, (v->vehstatus & VS_SHADOW) != 0);
}
void ViewportAddVehicles(DrawPixelInfo *dpi)