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