From b5b9452adb24b8b371fabf270baf07f494bf76c2 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 10 Jul 2021 22:08:48 +1000 Subject: [PATCH] - Optimise `fFindDistance2D()` to multiply by inverse rather than divide by a constant. --- source/core/mathutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/mathutil.cpp b/source/core/mathutil.cpp index ad92b79a2..1ed79eeb2 100644 --- a/source/core/mathutil.cpp +++ b/source/core/mathutil.cpp @@ -58,9 +58,9 @@ double fFindDistance2D(int x, int y) if (x