waits for fade to resume
This commit is contained in:
parent
10f9810eab
commit
0590ec2654
2 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,6 @@ function init(b) {
|
|||
$("#pauseBtn").show();
|
||||
if(saveState.hex !== undefined) gameState = 1;
|
||||
|
||||
scaleCanvas();
|
||||
settings.blockHeight = settings.baseBlockHeight * settings.scale;
|
||||
settings.hexWidth = settings.baseHexWidth * settings.scale;
|
||||
MainHex = saveState.hex || new Hex(settings.hexWidth);
|
||||
|
|
|
@ -219,7 +219,9 @@ function pause(o) {
|
|||
$('.helpText').hide();
|
||||
hideText();
|
||||
hidebottombar();
|
||||
gameState = prevGameState;
|
||||
setTimeout(function () {
|
||||
gameState = prevGameState;
|
||||
},200)
|
||||
|
||||
}
|
||||
else if(gameState != -2 && gameState !== 0 && gameState !== 2) {
|
||||
|
|
Loading…
Reference in a new issue