From 94fa0ec289450c893ab12970dff0155acc4e894a Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 28 Jul 2007 00:19:49 +0000 Subject: [PATCH] (svn r10714) -Fix r10696: MSVC performance warning --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index beeaafe31f..d014949275 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)