Changeset - r17777:9e30c19dc5ff
[Not reviewed]
master
0 1 0
michi_cc - 13 years ago 2011-06-12 23:42:42
michi_cc@openttd.org
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -897,13 +897,13 @@ static void DoDrawVehicle(const Vehicle 
 
	SpriteID image = v->cur_image;
 
	PaletteID pal = PAL_NONE;
 

	
 
	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.
 
		 * However, transparent smoke and bubbles look weird, so always hide them. */
 
		TransparencyOption to = EffectVehicle::From(v)->GetTransparencyOption();
 
		if (to != TO_INVALID && (IsTransparencySet(to) || IsInvisibilitySet(to))) return;
0 comments (0 inline, 0 general)