Skip to content

Commit

Permalink
bugfix puyo-puyo infinite 4w glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
ziloka committed Oct 21, 2023
1 parent 81e1e3d commit 2df5594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tetris/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ impl Board {
previous_offset_kick: None,
};
if self.conflict(&piece.dots, vec2(0.0, 0.0), true) {
// self.game_state = State::GameOver;
println!("UNCOMMENT ME RIGHT NOW");
self.game_state = State::GameOver;
} else {
self.active_piece = piece;
self.add_tetromino_preview_piece();
Expand Down Expand Up @@ -430,6 +429,7 @@ impl Board {
fn clear_line(&mut self, row_index: usize) {
for y in row_index..self.positions.len() as usize - 1 {
self.positions[y] = self.positions[y + 1].clone();
self.positions[y + 1] = vec![None; self.positions[0].len()];
}
}

Expand Down

0 comments on commit 2df5594

Please sign in to comment.