no wall nound on hard drop

This commit is contained in:
2023-12-07 20:02:43 +01:00
parent a04e118ff1
commit a89a60691c
2 changed files with 5 additions and 7 deletions

View File

@ -349,13 +349,11 @@ class Tetromino {
}
matrix.drawPiece()
return true
} else if (!hardDropped) {
if (translation == TRANSLATION.DOWN) {
} else if (!hardDropped && translation == TRANSLATION.DOWN) {
this.locked = true
if (!scheduler.timeoutTasks.has(lockDown))
scheduler.setTimeout(lockDown, stats.lockDelay)
matrix.drawPiece()
}
}
}