diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-07 15:24:24 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-07 15:24:24 +0800 |
commit | fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7 (patch) | |
tree | 64ef8986beb7ea81b9433aca90d9907beb4815aa /utils | |
parent | 2154f49bceed1ac8eeb1111ea402ddd2b243679d (diff) | |
download | SoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.tar.gz SoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.tar.bz2 SoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.zip |
Fix diana event waypoints
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/utils.js b/utils/utils.js index 8aa2ad0..6b28979 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -72,7 +72,7 @@ let utils = { ret.push(ret.length) } - let allOrders = functions.permutation(ret) + let allOrders = utils.permutation(ret) let lastOrder = [] let lastOrderLength = Infinity @@ -84,7 +84,7 @@ let utils = { }) let len = 0 positions.forEach((pos)=>{ - len += functions.calculateDistance(lastPoint,pos) + len += utils.calculateDistance(lastPoint,pos) lastPoint = pos }) @@ -116,4 +116,4 @@ let utils = { } } -export default utils
\ No newline at end of file +module.exports = utils
\ No newline at end of file |