From: Holger Schemel Date: Tue, 28 Feb 2023 19:09:51 +0000 (+0100) Subject: fixed redrawing redefined graphics for steel or wooden grid in MM engine X-Git-Tag: 4.3.5.2~23 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b3a26c7f7de58f5b86cf5069334407b4e9f8262a;p=rocksndiamonds.git fixed redrawing redefined graphics for steel or wooden grid in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 4b864e69..c87bc90a 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -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); }