# HG changeset patch # User michi_cc # Date 2011-06-12 23:42:42 # Node ID 9e30c19dc5ffb010d5e077d31315242973ebb53e # Parent 680ddf1939eb4de08ef16fd7921fa3f9050f368c (svn r22572) -Fix: MSVC performance warning (assigning int to bool). diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -900,7 +900,7 @@ static void DoDrawVehicle(const Vehicle 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.