From: Holger Schemel Date: Sat, 18 Feb 2023 09:15:56 +0000 (+0100) Subject: fixed unneccessarily complex code X-Git-Tag: 4.3.5.1~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=sidebyside;h=869bcbe4049f6135c202740019f6c2f60bde0425;p=rocksndiamonds.git fixed unneccessarily complex code --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index c6256e46..d6ba5374 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -2668,11 +2668,7 @@ static void Explode_MM(int x, int y, int phase, int mode) Tile[x][y] = center_element; } - if (center_element == EL_BOMB_ACTIVE || IS_MCDUFFIN(center_element)) - Store[x][y] = center_element; - else - Store[x][y] = EL_EMPTY; - + Store[x][y] = center_element; Store2[x][y] = mode; Tile[x][y] = EL_EXPLODING_OPAQUE; @@ -2709,7 +2705,6 @@ static void Explode_MM(int x, int y, int phase, int mode) InitLaser(); Bang_MM(laser.start_edge.x, laser.start_edge.y); - Store[x][y] = EL_EMPTY; GameOver_MM(GAME_OVER_DELAYED); @@ -2717,12 +2712,11 @@ static void Explode_MM(int x, int y, int phase, int mode) } else if (IS_MCDUFFIN(Store[x][y])) { - Store[x][y] = EL_EMPTY; - GameOver_MM(GAME_OVER_BOMB); } - Tile[x][y] = Store[x][y]; + Tile[x][y] = EL_EMPTY; + Store[x][y] = Store2[x][y] = 0; MovDir[x][y] = MovPos[x][y] = MovDelay[x][y] = 0;