diff options
Diffstat (limited to 'features/events/index.js')
-rw-r--r-- | features/events/index.js | 2 |
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 |