Mercurial > hg > openttd
changeset 17787:f494fc48030a draft
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Sun, 12 Jun 2011 23:42:42 +0000 |
parents | 9c79dc561eaa |
children | 5d14fa020688 |
files | src/vehicle.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -900,7 +900,7 @@ 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.