diff --git a/tetris.js b/tetris.js index eaeaf77..b0c5b36 100644 --- a/tetris.js +++ b/tetris.js @@ -236,11 +236,10 @@ function TetrisGame(canvasId, linesCounterId, nextBricksCanvasId) { } this.board[x][y] = this.bricks[this.currentBrickId]; - this.currentBrickId = 0; - this.currentBrickLoc = 0; - this.currentBrickRot = 0; } - + this.currentBrickId = 0; + this.currentBrickLoc = 0; + this.currentBrickRot = 0; } this.moveCurrentBrickDown = function() {