can't restart game multiple times in a row bc of timeOut

This commit is contained in:
lengstrom 2014-08-23 01:28:51 -04:00
parent 088b768a02
commit e4814ec5dc

View file

@ -125,13 +125,15 @@ function handleClickTap(x,y) {
}
if (gameState == 2 && canRestart) {
setTimeout(function(){
setTimeout(function() {
if(tweetblock) {
tweetblock = false;
return;
}
else{
init(1);
if (gameState != 1) {
init(1);
}
}
return;
}, 1000);