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);