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