From e7d741c82187370f4ae06a3cf97d76b518a69332 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 9 Feb 2022 21:41:26 +0100 Subject: [PATCH] WIP --- twitch/chatguessr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 619f040..036c116 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -97,7 +97,7 @@ if(guesses[current_round].some((v)=>v.user==user)) return; if(!isCoordinates(position)) return; var pos = toPos(position) - var distance = haversineDistance(pos, {lat:seed.rounds[current_round].lat,lon:seed.rounds[current_round].lon}) + var distance = haversineDistance(pos, {lat:seed.rounds[current_round].lat,lng:seed.rounds[current_round].lng}) var score = calculateScore(distance, scale) guesses[current_round].push({