From: Holger Schemel Date: Thu, 23 Feb 2023 16:15:36 +0000 (+0100) Subject: added resetting animation frame for active game elements in MM engine X-Git-Tag: 4.3.5.2~34 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=049c39daf10cc5080e5e25a8d87ea3e8d8b26b50;p=rocksndiamonds.git added resetting animation frame for active game elements in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 486395cd..81bbe9d0 100644 --- 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;