This commit is contained in:
choelzl 2022-02-09 21:41:26 +01:00
parent 275c4772d0
commit e7d741c821
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -97,7 +97,7 @@
if(guesses[current_round].some((v)=>v.user==user)) return; if(guesses[current_round].some((v)=>v.user==user)) return;
if(!isCoordinates(position)) return; if(!isCoordinates(position)) return;
var pos = toPos(position) 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) var score = calculateScore(distance, scale)
guesses[current_round].push({ guesses[current_round].push({