From 74594e4c345975d712dffa013a21904ce0d5837b Mon Sep 17 00:00:00 2001 From: dileepvr Date: Sat, 8 Mar 2025 07:33:58 -0700 Subject: [PATCH] Remove bitwise opeartion on bool Visual Studio compiler was giving the warning: `warning C4805: '|=': unsafe mix of type 'bool' and type 'int' in operation` --- src/rendering/hwrenderer/scene/hw_walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/scene/hw_walls.cpp b/src/rendering/hwrenderer/scene/hw_walls.cpp index d5271d05f1..527c02c0de 100644 --- a/src/rendering/hwrenderer/scene/hw_walls.cpp +++ b/src/rendering/hwrenderer/scene/hw_walls.cpp @@ -85,7 +85,7 @@ void HWWall::RenderWall(FRenderState &state, int textured) { bool ditherT = (type == RENDERWALL_BOTTOM) && (seg->sidedef->Flags & WALLF_DITHERTRANS_BOTTOM); ditherT |= (type == RENDERWALL_TOP) && (seg->sidedef->Flags & WALLF_DITHERTRANS_TOP); - ditherT |= seg->sidedef->Flags & WALLF_DITHERTRANS_MID; + ditherT = ditherT || (seg->sidedef->Flags & WALLF_DITHERTRANS_MID); if (ditherT) { state.SetEffect(EFF_DITHERTRANS);