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