X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=b7f8736a03a77ec1d932b44956ca14d871242477;hb=7f44b998d7a52222429d0794d3ec1713f37a7f47;hp=b10c4f7102ac27d3e9879f48d9d3a1bc8112324f;hpb=1f6e5b67296a3c23aa8c28661d4ab21f688ddd34;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index b10c4f71..b7f8736a 100644 --- a/src/game.c +++ b/src/game.c @@ -4515,7 +4515,6 @@ void InitGame(void) } game.restart_level = FALSE; - game.restart_game_message = NULL; game.request_active = FALSE; game.request_active_or_moving = FALSE; @@ -15635,8 +15634,6 @@ void RequestQuitGame(boolean escape_key_pressed) void RequestRestartGame(char *message) { - game.restart_game_message = NULL; - boolean has_started_game = hasStartedNetworkGame(); int request_mode = (has_started_game ? REQ_ASK : REQ_CONFIRM); int door_state = DOOR_CLOSE_1; @@ -15713,9 +15710,7 @@ boolean CheckRestartGame(void) if (!setup.ask_on_game_over) return FALSE; - game.restart_game_message = getRestartGameMessage(); - - RequestRestartGame(game.restart_game_message); + RequestRestartGame(getRestartGameMessage()); return TRUE; }