fixed using masked elements when using element graphic for empty space
authorHolger Schemel <info@artsoft.org>
Sat, 18 Nov 2023 15:55:35 +0000 (16:55 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 18 Nov 2023 15:55:35 +0000 (16:55 +0100)
src/game.c

index 51633eb17bac0a776424354fca73b6a7c642f46b..a7e05b85d23b6fa6362a4f3a55dea4cec40d225c 100644 (file)
@@ -3973,6 +3973,10 @@ void InitGame(void)
 
   InitBeltMovement();
 
+  // required if level does not contain any "empty space" element
+  if (element_info[EL_EMPTY].use_gfx_element)
+    game.use_masked_elements = TRUE;
+
   for (i = 0; i < MAX_PLAYERS; i++)
   {
     struct PlayerInfo *player = &stored_player[i];