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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue