From ec42e30614997c42604080f81599c947cf138a43 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 19 Aug 2017 11:18:52 +0300 Subject: [PATCH] Fixed compilation warning reported by Clang src/polyrenderer/scene/poly_wall.cpp:166:15: warning: '&&' within '||' [-Wlogical-op-parentheses] --- src/polyrenderer/scene/poly_wall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyrenderer/scene/poly_wall.cpp b/src/polyrenderer/scene/poly_wall.cpp index 55fb940a95..0a882cee40 100644 --- a/src/polyrenderer/scene/poly_wall.cpp +++ b/src/polyrenderer/scene/poly_wall.cpp @@ -163,7 +163,7 @@ bool RenderPolyWall::RenderLine(const TriMatrix &worldToClip, const PolyClipPlan wall.FogBoundary = IsFogBoundary(frontsector, backsector); FTexture *midtex = TexMan(line->sidedef->GetTexture(side_t::mid), true); - if (midtex && midtex->UseType != FTexture::TEX_Null || wall.FogBoundary) + if ((midtex && midtex->UseType != FTexture::TEX_Null) || wall.FogBoundary) translucentWallsOutput.push_back(PolyRenderer::Instance()->FrameMemory.NewObject(wall)); if (polyportal)