moved requesting game restart to function that checks for game over
[rocksndiamonds.git] / src / screens.c
index 4d8f50e0e256c800e07db644618a960bec7ab1ce..c4955e8c7bdcac56ddaad9ceaed82a8e6e96a246 100644 (file)
@@ -9527,15 +9527,8 @@ void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
 
 void HandleGameActions(void)
 {
-  if (setup.ask_on_game_over)
-    CheckGameOver();
-
-  if (game.restart_game_message != NULL)
-  {
-    RequestRestartGame(game.restart_game_message);
-
+  if (CheckRestartGame())
     return;
-  }
 
   if (game_status != GAME_MODE_PLAYING)
     return;