Skip to content

Commit 40aef53

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 df724a8 commit 40aef53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rendering/hwrenderer/scene/hw_walls.cpp

+1-1
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)