From e30d93a8b07ef8ee577768b305909e80060a3342 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 22 Mar 2023 19:22:22 +0100 Subject: [PATCH] moved getting restart message to request function --- src/game.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index 6e0914df..ecc1cea0 100644 --- a/src/game.c +++ b/src/game.c @@ -15649,8 +15649,9 @@ static char *getRestartGameMessage(void) return message; } -static void RequestRestartGame(char *message) +static void RequestRestartGame(void) { + char *message = getRestartGameMessage(); boolean has_started_game = hasStartedNetworkGame(); int request_mode = (has_started_game ? REQ_ASK : REQ_CONFIRM); int door_state = DOOR_CLOSE_1; @@ -15710,7 +15711,7 @@ boolean CheckRestartGame(void) if (!setup.ask_on_game_over) return FALSE; - RequestRestartGame(getRestartGameMessage()); + RequestRestartGame(); return TRUE; } -- 2.34.1