mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
This commit is contained in:
@@ -900,7 +900,7 @@ static void DoDrawVehicle(const Vehicle *v)
|
|||||||
if (v->vehstatus & VS_DEFPAL) pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(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 */
|
/* 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) {
|
if (v->type == VEH_EFFECT) {
|
||||||
/* Check whether the vehicle shall be transparent/invisible due to GUI settings.
|
/* Check whether the vehicle shall be transparent/invisible due to GUI settings.
|
||||||
|
Reference in New Issue
Block a user