waits for fade to resume

This commit is contained in:
Garrett Finucane 2014-07-22 22:19:20 -04:00
parent 10f9810eab
commit 0590ec2654
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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) {