fixed pause not working if u try pausing in main menu
This commit is contained in:
parent
cdd9bafa43
commit
6ef7cdea7b
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue