fix resume

This commit is contained in:
Adrien MALINGREY 2019-11-03 01:39:39 +01:00
parent fc95b7384b
commit a404f22801

View File

@ -732,7 +732,7 @@ function pause() {
function resume() {
state = STATE.PLAYING
messageDiv.innerHTML = ""
scheduler.setTimeout(lockPhase, stats.fallPeriod)
scheduler.setInterval(lockPhase, stats.fallPeriod)
if (matrix.piece.locked)
scheduler.setTimeout(lockDown, stats.lockDelay)
scheduler.setInterval(clock, 1000)