diff options
| author | Jan200101 <sentrycraft123@gmail.com> | 2021-12-31 13:53:01 +0100 |
|---|---|---|
| committer | Jan200101 <sentrycraft123@gmail.com> | 2021-12-31 13:53:01 +0100 |
| commit | 99ddf1fb9274f2f1928b92abfe62c2172c19cdb3 (patch) | |
| tree | 1e72caa10110e73aa99b85379d85ae007972eb16 /data/core/common.lua | |
| parent | 416a06c5663e71e51fec5bf12ddd8a136f99a1c8 (diff) | |
| download | pragtical-99ddf1fb9274f2f1928b92abfe62c2172c19cdb3.tar.gz pragtical-99ddf1fb9274f2f1928b92abfe62c2172c19cdb3.zip | |
Migrate to Lua 5.4
Diffstat (limited to 'data/core/common.lua')
| -rw-r--r-- | data/core/common.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
