added transparency for game elements over empty space elements
authorHolger Schemel <info@artsoft.org>
Fri, 26 Nov 2021 23:04:49 +0000 (00:04 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Jan 2022 16:58:29 +0000 (17:58 +0100)
src/game.c

index 8ac2616131b19c07bf66ea9e47abaec49a95bb8a..491d4e9b541be0f3ca1ab48423f3ac1e16965719 100644 (file)
@@ -2032,6 +2032,9 @@ static void InitField(int x, int y, boolean init_game)
       {
        GfxElementEmpty[x][y] = element;
        Tile[x][y] = EL_EMPTY;
+
+       if (element_info[element].use_gfx_element)
+         game.use_masked_elements = TRUE;
       }
 
       break;