fixed pause not working if u try pausing in main menu

This commit is contained in:
lengstrom 2015-08-27 00:24:59 -04:00
parent cdd9bafa43
commit 6ef7cdea7b

View file

@ -165,9 +165,10 @@ function updateHighScores (){
}
var pausable = true;
function pause(o) {
if(!pausable){
return;
}
if (gameState == 0 || gameState == 2 || !pausable) {
return;
}
pausable = false;
writeHighScores();
var message;