From 3c872da037d149c95f17614cb231d5bfbc1e5cc4 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 5 Apr 2024 17:43:11 +0200 Subject: [PATCH] fixed another bug with game restart request when opening/closing doors --- src/game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.c b/src/game.c index 5c3cc9d3..ec86a61f 100644 --- a/src/game.c +++ b/src/game.c @@ -5165,6 +5165,10 @@ void GameEnd(void) // Important note: This function is not only called after "GameWon()", but also after // "game over" (if automatically asking for restarting the game is disabled in setup) + // do not handle game end if request dialog is already active + if (checkRequestActive()) + return; + if (game.LevelSolved) game.LevelSolved_GameEnd = TRUE; -- 2.34.1