From 8f854091e05d1297cf2100feb3fdb440dbe2b86b Mon Sep 17 00:00:00 2001 From: Robert Kolner Date: Wed, 21 Nov 2012 19:31:35 +0100 Subject: [PATCH] Fixed a bug with brick being doubled. --- tetris.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() {