From ff0caeead716580afa8af6dcdcd11cf720fb16cd Mon Sep 17 00:00:00 2001 From: girst Date: Wed, 5 Jul 2017 14:40:45 +0200 Subject: [PATCH] on win/lose: allow restarting with 'r' --- mines_2017.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mines_2017.c b/mines_2017.c index 3d294a2..6b877fa 100644 --- a/mines_2017.c +++ b/mines_2017.c @@ -405,6 +405,9 @@ lose: (mouse[1]==f.w+COL_OFFSET || mouse[1]==f.w+COL_OFFSET+1)) { free_field (); goto newgame; + } else if (gotaction == 'r') { + free_field (); + goto newgame; } else if (gotaction == 'q') { goto quit; } -- 2.39.3