From a2236c144e5b5e37f5cde0c2d5df9e32972af9d3 Mon Sep 17 00:00:00 2001 From: dileepvr Date: Sun, 20 Apr 2025 13:27:48 -0600 Subject: [PATCH] Ensure boolean to suppress compiler warning Finally used `!!(...)` somewhere. --- src/rendering/hwrenderer/scene/hw_drawinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp index e8f578dfe..e16a549d9 100644 --- a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp +++ b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp @@ -486,7 +486,7 @@ void HWDrawInfo::CreateScene(bool drawpsprites) { double a2 = 20.0 + 0.5*Viewpoint.FieldOfView.Degrees(); // FrustumPitch for vertical clipping if (a2 > 179.0) a2 = 179.0; - double pitchmult = (portalState.PlaneMirrorFlag & 1) ? -1.0 : 1.0; + double pitchmult = !!(portalState.PlaneMirrorFlag & 1) ? -1.0 : 1.0; vClipper->SafeAddClipRangeDegPitches(pitchmult * vp.HWAngles.Pitch.Degrees() - a2, pitchmult * vp.HWAngles.Pitch.Degrees() + a2); // clip the suplex range Viewpoint.PitchSin *= pitchmult; }