From: Holger Schemel Date: Wed, 22 Mar 2023 18:13:54 +0000 (+0100) Subject: removed variable that was not required X-Git-Tag: 4.3.5.3~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7f44b998d7a52222429d0794d3ec1713f37a7f47;p=rocksndiamonds.git removed variable that was not required --- 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; } diff --git a/src/game.h b/src/game.h index 95531163..6ecbefc4 100644 --- a/src/game.h +++ b/src/game.h @@ -242,9 +242,6 @@ struct GameInfo // values for special game initialization control boolean restart_level; - // trigger message to ask for restarting the game - char *restart_game_message; - // values for special request dialog control boolean request_active; boolean request_active_or_moving; diff --git a/src/init.c b/src/init.c index 6605186c..aae262f5 100644 --- a/src/init.c +++ b/src/init.c @@ -5489,7 +5489,6 @@ static void InitSetup(void) static void InitGameInfo(void) { game.restart_level = FALSE; - game.restart_game_message = NULL; game.request_active = FALSE; game.request_active_or_moving = FALSE;