Skip to content

Commit 74594e4

Browse files
dileepvrRicardoLuis0
authored andcommitted
Remove bitwise opeartion on bool
Visual Studio compiler was giving the warning: `warning C4805: '|=': unsafe mix of type 'bool' and type 'int' in operation`
1 parent e24c6fa commit 74594e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rendering/hwrenderer/scene/hw_walls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void HWWall::RenderWall(FRenderState &state, int textured)
8585
{
8686
bool ditherT = (type == RENDERWALL_BOTTOM) && (seg->sidedef->Flags & WALLF_DITHERTRANS_BOTTOM);
8787
ditherT |= (type == RENDERWALL_TOP) && (seg->sidedef->Flags & WALLF_DITHERTRANS_TOP);
88-
ditherT |= seg->sidedef->Flags & WALLF_DITHERTRANS_MID;
88+
ditherT = ditherT || (seg->sidedef->Flags & WALLF_DITHERTRANS_MID);
8989
if (ditherT)
9090
{
9191
state.SetEffect(EFF_DITHERTRANS);

0 commit comments

Comments
 (0)