fixed redrawing redefined graphics for steel or wooden grid in MM engine
authorHolger Schemel <info@artsoft.org>
Tue, 28 Feb 2023 19:09:51 +0000 (20:09 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 28 Feb 2023 19:09:51 +0000 (20:09 +0100)
src/game_mm/mm_game.c

index 4b864e6937ace2acfb7f8fffe0d073fffca2ae42..c87bc90a0aa4afc22ab67372d9dd5599fe8c5f93 100644 (file)
@@ -2006,10 +2006,16 @@ static boolean HitPolarizer(int element, int hit_mask)
   }
   else if (IS_GRID_STEEL(element))
   {
+    // may be required if graphics for steel grid redefined
+    AddDamagedField(ELX, ELY);
+
     return HitReflectingWalls(element, hit_mask);
   }
   else // IS_GRID_WOOD
   {
+    // may be required if graphics for wooden grid redefined
+    AddDamagedField(ELX, ELY);
+
     return HitAbsorbingWalls(element, hit_mask);
   }