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; var pausable = true;
function pause(o) { function pause(o) {
if(!pausable){ if (gameState == 0 || gameState == 2 || !pausable) {
return; return;
} }
pausable = false; pausable = false;
writeHighScores(); writeHighScores();
var message; var message;