Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
squee72564 committed Jan 8, 2024
2 parents 462677b + 2c5f802 commit 66f93fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/minesweeper_game_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,12 +977,13 @@ static bool mine_sweeper_game_screen_view_play_input_callback(InputEvent* event,
}

// LOSE CONDITION OR CLEAR SURROUNDING
} else if (!model->is_holding_down_button && event->type == InputTypeRepeat) {
} else if (!model->is_holding_down_button && event->type == InputTypeLong) {
// Try to clear surrounding tiles if correct number is flagged.
is_lose_condition_triggered = try_clear_surrounding_tiles(model);
model->is_holding_down_button = true;

}
}

},
true
);
Expand Down

0 comments on commit 66f93fd

Please sign in to comment.