From 824fdbdf8605d64eae9531da64fbe1970cd20935 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 1 Apr 2019 08:09:36 +0200 Subject: [PATCH] utils/math: fix an oops --- gamecore/utils/math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamecore/utils/math.lua b/gamecore/utils/math.lua index 678720f..b030035 100644 --- a/gamecore/utils/math.lua +++ b/gamecore/utils/math.lua @@ -39,7 +39,7 @@ function Math.pointDistance(x1, y1, x2, y2) local vecx, vecy vecx = math.max(x1, x2) - math.min(x1, x2) - vexy = math.max(y1, y2) - math.min(y1, y2) + vecy = math.max(y1, y2) - math.min(y1, y2) return math.sqrt(vecx^2 + vecy^2)