fixed issue in which waves would restart after resuming the game

This commit is contained in:
meadowstream 2014-06-30 22:45:00 -04:00
parent d871437cf0
commit 63d5aaa2be

View file

@ -145,13 +145,13 @@ var gameState;
setStartScreen();
function resumeGame() {
debugger;
gameState = 1;
hideUIElements();
$('#pauseBtn').show();
$('#restartBtn').show();
importing = 0;
startTime = Date.now();
waveone = saveState.wavegen || new waveGen(MainClock,Date.now(),[1,1,0],[1,1],[1,1]);
}
function hideUIElements() {