projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfdc42
)
added resetting animation frame for active game elements in MM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 23 Feb 2023 16:15:36 +0000
(17:15 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 23 Feb 2023 16:15:58 +0000
(17:15 +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 486395cda52f5fcf99f7fd69deb5d721196fb930..81bbe9d0ea577d63477bbf35129774f7687f19c2 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-1691,6
+1691,8
@@
static boolean HitElement(int element, int hit_mask)
element == EL_MINE ? EL_MINE_ACTIVE :
EL_GRAY_BALL_ACTIVE);
+ GfxFrame[ELX][ELY] = 0; // restart animation
+
laser.dest_element_last = Tile[ELX][ELY];
laser.dest_element_last_x = ELX;
laser.dest_element_last_y = ELY;