(svn r10714) -Fix r10696: MSVC performance warning
authorglx
Sat, 28 Jul 2007 00:19:49 +0000
changeset 7847 002d1f4bd222
parent 7846 fc858e3bdaf2
child 7848 31b4a92bc171
(svn r10714) -Fix r10696: MSVC performance warning
src/vehicle.cpp
--- a/src/vehicle.cpp	Fri Jul 27 23:49:48 2007 +0000
+++ b/src/vehicle.cpp	Sat Jul 28 00:19:49 2007 +0000
@@ -859,7 +859,7 @@
 	}
 
 	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)