From 34dee54d90fcde0175cbf5aca76e0ab0b5ba27eb Mon Sep 17 00:00:00 2001 From: Angen Date: Tue, 15 Sep 2020 10:10:52 +0000 Subject: [PATCH] Remove branch from InParabolicRange This was SVN commit r24041. --- source/simulation2/components/CCmpRangeManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/simulation2/components/CCmpRangeManager.cpp b/source/simulation2/components/CCmpRangeManager.cpp index 505d755c08..59344db621 100644 --- a/source/simulation2/components/CCmpRangeManager.cpp +++ b/source/simulation2/components/CCmpRangeManager.cpp @@ -173,10 +173,7 @@ static bool InParabolicRange(CFixedVector3D v, fixed range) i64 c2 = MUL_I64_I32_I32(c_2 - y, c); - if (d2 <= c2) - return true; - - return false; + return d2 <= c2; } struct EntityParabolicRangeOutline