fixed short reactivation of overlay buttons while closing door after game
authorHolger Schemel <info@artsoft.org>
Tue, 11 Dec 2018 20:58:24 +0000 (21:58 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 11 Dec 2018 20:58:24 +0000 (21:58 +0100)
src/game.c

index 3a3b10e63c72fc521e501a988fefadd7021a668f..d517cdc06587c182cfb5f522b6beddb064dc4af1 100644 (file)
@@ -14973,7 +14973,12 @@ void RequestQuitGameExt(boolean skip_request, boolean quick_quit, char *message)
   {
     // closing door required in case of envelope style request dialogs
     if (!skip_request)
+    {
+      // prevent short reactivation of overlay buttons while closing door
+      SetOverlayActive(FALSE);
+
       CloseDoor(DOOR_CLOSE_1);
+    }
 
     if (network.enabled)
       SendToServer_StopPlaying(NETWORK_STOP_BY_PLAYER);