This commit is contained in:
choelzl 2022-02-10 10:57:32 +01:00
parent c0c48ddfa6
commit 96cb4d077c
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -107,8 +107,8 @@
score:score, score:score,
streak: 0, streak: 0,
}); });
guesses.round = seed.round - 1;
sendData('guesses',JSON.stringify(guesses)); sendData('guesses',JSON.stringify(guesses));
} }
function sendData(tpe, data) { function sendData(tpe, data) {
@ -147,8 +147,7 @@
if(seed.token == undefined) return; if(seed.token == undefined) return;
var newseed = fetchSeed(seed.token); var newseed = fetchSeed(seed.token);
if(newseed.round > seed.round){ if(newseed.round > seed.round){
$.setIniDbBoolean('chatguessr', 'isOpen',false) $.setIniDbBoolean('chatguessr', 'isOpen',false) //NEW ROUND /Score
//NEW ROUND /Score
var gp = newseed.player.guesses[seed.round - 1].lat+","+newseed.player.guesses[seed.round - 1].lng var gp = newseed.player.guesses[seed.round - 1].lat+","+newseed.player.guesses[seed.round - 1].lng
addGuess($.channelName,gp); addGuess($.channelName,gp);
}else{ }else{
@ -160,7 +159,6 @@
} }
} }
seed = newseed; seed = newseed;
guesses.round = seed.round - 1;
}else if(action.equalsIgnoreCase('gg')){ }else if(action.equalsIgnoreCase('gg')){
sendData('guesses',JSON.stringify(guesses)); sendData('guesses',JSON.stringify(guesses));
}else if(action.equalsIgnoreCase('fg')){ }else if(action.equalsIgnoreCase('fg')){