From 9b6abd8ef0d6de27674729f5f18e897271f7d38c Mon Sep 17 00:00:00 2001 From: TQMatvey Date: Sat, 15 Oct 2022 10:53:45 +0700 Subject: [PATCH] Minesweeper: Set cursor to initial position on death --- applications/plugins/minesweeper/minesweeper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/plugins/minesweeper/minesweeper.c b/applications/plugins/minesweeper/minesweeper.c index d3a5207f9..95044c04c 100644 --- a/applications/plugins/minesweeper/minesweeper.c +++ b/applications/plugins/minesweeper/minesweeper.c @@ -217,6 +217,10 @@ static bool game_lost(Minesweeper* minesweeper_state) { dialog_message_set_icon(message, NULL, 0, 10); + // Set cursor to initial position + minesweeper_state->cursor_x = 0; + minesweeper_state->cursor_y = 0; + NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION); notification_message(notifications, &sequence_set_vibro_on); furi_record_close(RECORD_NOTIFICATION);