From 99ddf1fb9274f2f1928b92abfe62c2172c19cdb3 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 31 Dec 2021 13:53:01 +0100 Subject: Migrate to Lua 5.4 --- data/core/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/core/common.lua') diff --git a/data/core/common.lua b/data/core/common.lua index df7d435a..bae6636a 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -42,7 +42,7 @@ end function common.distance(x1, y1, x2, y2) - return math.sqrt(math.pow(x2-x1, 2)+math.pow(y2-y1, 2)) + return math.sqrt(((x2-x1) ^ 2)+((y2-y1) ^ 2)) end -- cgit v1.2.3