aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-11 21:12:47 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-11 21:12:47 +0800
commit0dd404208fc066dcb3f826c7c2f558a9bcc27725 (patch)
tree66ae61dd336d41eaa7fd5475c34b5c95e0110ebd /features/events/index.js
parent63eed7a20a769f1188eda92ed26b44c293b038cc (diff)
downloadSoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.tar.gz
SoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.tar.bz2
SoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.zip
+ fix ch waypoints showing when not in ch
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 312a999..511295a 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -573,6 +573,8 @@ class Events extends Feature {
let p1 = pr1[pr1.length - 1]
let p2 = pr2[pr2.length - 1]
+ if (!this.guessPoint) return
+
let d1 = (p1[0] - this.guessPoint[0]) ** 2 + (p1[2] - this.guessPoint[2]) ** 2
let d2 = (p2[0] - this.guessPoint[0]) ** 2 + (p2[2] - this.guessPoint[2]) ** 2