From 0dd404208fc066dcb3f826c7c2f558a9bcc27725 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 11 Sep 2022 21:12:47 +0800 Subject: + fix ch waypoints showing when not in ch --- features/events/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'features/events/index.js') 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 -- cgit