Skip to content

Commit

Permalink
I fixed it I fixed the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andwn committed Nov 27, 2014
1 parent f192ed3 commit c51fb08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tetris.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ void update_stage() {
if(blockTime >= blockSpeed) {
// No matter the gravity, always wait at least half a second
// before locking
if(check_lock(piece) && blockSpeed < LOCK_DELAY && !key.down) {
blockSpeed = LOCK_DELAY;
} else {
if(!check_lock(piece) || blockTime >= LOCK_DELAY || key.down) {
move_piece_down();
}
}
Expand Down

0 comments on commit c51fb08

Please sign in to comment.