From 050a212195f8e423d5cb28a018326271e165e98d Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sun, 12 Jun 2011 23:42:42 +0000 Subject: (svn r22572) -Fix: MSVC performance warning (assigning int to bool). --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index aaa027aff..ccbb96068 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -900,7 +900,7 @@ static void DoDrawVehicle(const Vehicle *v) if (v->vehstatus & VS_DEFPAL) pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); /* Check whether the vehicle shall be transparent due to the game state */ - bool shadowed = (v->vehstatus & VS_SHADOW); + bool shadowed = (v->vehstatus & VS_SHADOW) != 0; if (v->type == VEH_EFFECT) { /* Check whether the vehicle shall be transparent/invisible due to GUI settings. -- cgit v1.2.3-70-g09d2