From: Holger Schemel Date: Wed, 22 Mar 2023 18:22:22 +0000 (+0100) Subject: moved getting restart message to request function X-Git-Tag: 4.3.5.3~28 X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=commitdiff_plain;h=e30d93a8b07ef8ee577768b305909e80060a3342;p=rocksndiamonds.git moved getting restart message to request function --- 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; }