From: Holger Schemel Date: Fri, 5 Apr 2024 15:43:11 +0000 (+0200) Subject: fixed another bug with game restart request when opening/closing doors X-Git-Tag: 4.4.0.0-test-1~104 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3c872da037d149c95f17614cb231d5bfbc1e5cc4;p=rocksndiamonds.git fixed another bug with game restart request when opening/closing doors --- 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;