summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-06-12 23:42:42 +0000
committermichi_cc <michi_cc@openttd.org>2011-06-12 23:42:42 +0000
commit050a212195f8e423d5cb28a018326271e165e98d (patch)
tree357efdae152922979e0a337ed54bed9f30ecc059 /src/vehicle.cpp
parent8ddb3941f71470611285f0bdda976d0d15e8b00c (diff)
downloadopenttd-050a212195f8e423d5cb28a018326271e165e98d.tar.xz
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
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.