This commit is contained in:
choelzl 2022-02-14 16:53:30 +01:00
parent 2ae50baeff
commit 2597a9ae30
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -153,8 +153,11 @@
$.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{
if(newseed.state=="finished"){
}else if(newseed.state=="finished" && newseed.player.guesses.length > seed.player.guesses.length){
$.setIniDbBoolean('chatguessr', 'isOpen',false)
var gp = newseed.player.guesses[newseed.round - 1].lat+","+newseed.player.guesses[newseed.round - 1].lng
addGuess($.channelName,gp);
}else if(newseed.state=="finished"){
$.setIniDbBoolean('chatguessr', 'isOpen',false) //FINISHED
//Compute total scores + give reward
seed = newseed;
@ -164,7 +167,6 @@
guesses.round = seed.round - 1;
sendGuessData();
}
}
seed = newseed;
}else if(action.equalsIgnoreCase('gg')){
sendGuessData();