X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=ecc1cea08e9ee3467d35bba375297df454152a33;hb=e30d93a8b07ef8ee577768b305909e80060a3342;hp=6e0914df5e867453e176780bf7daf1d940a1ee48;hpb=3c036eb0bd76347ddaaf112018512c9f2a357e1f;p=rocksndiamonds.git 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; }