From e2d206ff44b65e19647e3d292120d02682050584 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 31 Mar 2019 11:47:31 +0200 Subject: [PATCH] core/utils/math: fix an oops --- sonic-radiance.love/core/utils/math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/core/utils/math.lua b/sonic-radiance.love/core/utils/math.lua index 678720f..b030035 100644 --- a/sonic-radiance.love/core/utils/math.lua +++ b/sonic-radiance.love/core/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)