From: Holger Schemel Date: Mon, 6 Jan 2025 19:37:45 +0000 (+0100) Subject: inverted logic for checking for covering BD screen X-Git-Tag: 4.4.0.1~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f3567adea343407ceca4c11b033ca218af123791;p=rocksndiamonds.git inverted logic for checking for covering BD screen --- diff --git a/src/tools.c b/src/tools.c index b1ae9055..9f143726 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1001,8 +1001,10 @@ static void SetScreenStates_AfterFadingOut(void) void CoverScreen(void) { - if (level.game_engine_type == GAME_ENGINE_TYPE_BD && game_bd.cover_screen) - CoverScreen_BD(); + if (level.game_engine_type != GAME_ENGINE_TYPE_BD || !game_bd.cover_screen) + return; + + CoverScreen_BD(); } void FadeIn(int fade_mask)