WIP
This commit is contained in:
parent
14a4ca4efd
commit
4307d576a5
@ -115,7 +115,7 @@
|
||||
guesses.rounds = seed.rounds;
|
||||
$.panelsocketserver.sendJSONToAll(JSON.stringify({
|
||||
'eventFamily': 'chatguessr',
|
||||
'eventType': 'guesse',
|
||||
'eventType': 'guesses',
|
||||
'data': JSON.stringify(guesses)
|
||||
}));
|
||||
}
|
||||
@ -149,7 +149,7 @@
|
||||
}else if(action.equalsIgnoreCase('refresh')){
|
||||
if(seed.token == undefined) return;
|
||||
var newseed = fetchSeed(seed.token);
|
||||
if(newseed.round > seed.round){
|
||||
if(newseed.player.guesses > seed.round){
|
||||
$.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user