added not covering BD screen when returning to editor
authorHolger Schemel <holger.schemel@virtion.de>
Tue, 14 Jan 2025 23:29:41 +0000 (00:29 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Wed, 15 Jan 2025 09:30:39 +0000 (10:30 +0100)
src/tools.c

index 20784a476f8de2bf50d49f7fce25525a0724e29d..bf600aaccb2b3e5a5187e3f7e6160146c6d0ea4c 100644 (file)
@@ -1004,6 +1004,10 @@ void CoverScreen(void)
   if (level.game_engine_type != GAME_ENGINE_TYPE_BD || !game_bd.cover_screen)
     return;
 
+  // do not cover screen if returning from playing to level editor
+  if (game_status == GAME_MODE_EDITOR)
+    return;
+
   // before covering screen, close request door that might still be open
   if (game.request_open)
   {