Fixed a bug with brick being doubled.

This commit is contained in:
Robert Kolner committed 2012-11-21 19:31:35 +01:00
1 parent ac138f4369
commit 8f854091e0
1 file changed
+3 -4
+3 -4
View File
@@ -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() {