projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd09553
)
fixed redrawing redefined graphics for steel or wooden grid in MM engine
author
Holger Schemel
<info@artsoft.org>
Tue, 28 Feb 2023 19:09:51 +0000
(20:09 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 28 Feb 2023 19:09:51 +0000
(20:09 +0100)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 4b864e6937ace2acfb7f8fffe0d073fffca2ae42..c87bc90a0aa4afc22ab67372d9dd5599fe8c5f93 100644
(file)
--- 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);
}