Removed unnecessary code.

This commit is contained in:
Robert Kolner committed 2012-03-15 16:37:55 +01:00
1 parent aaec2f9f43
commit 6d46680925
1 file changed
-9
-9
View File
@@ -39,13 +39,7 @@ function TetrisGame(id) {
/**************/
/* Functions: */
/**************/
this.drawLocked = false;
this.drawLock = function() { this.drawLocked = true; };
this.drawUnlock = function() { this.drawLocked = false; };
this.redraw = function() {
if (this.drawLocked) return;
this.canvas.drawBoard(this.board);
this.drawCurrentBrick();
}
@@ -217,15 +211,12 @@ function TetrisGame(id) {
}
this.doTurn = function() {
/* Fill out */
this.moveCurrentBrickDown();
this.drawLock();
var filledLines = this.getFilledLines();
for (var i = 0; i < filledLines.length; i++) {
this.removeLine(filledLines[i]-1);
}
this.drawUnlock();
this.redraw();
if (this.isGameLost) {