X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_mm%2Fmm_tools.c;h=d8dbe8becaa5270253801ca4a406f0255f8d1aa3;hb=c2575609f053eab9617b11f2150e308904cab339;hp=d4bb5d37553ae80e1c72032f91e2cfc5146f281a;hpb=f11f733c9a676d117a70ce117b4ecc3cfdb16be9;p=rocksndiamonds.git diff --git a/src/game_mm/mm_tools.c b/src/game_mm/mm_tools.c index d4bb5d37..d8dbe8be 100644 --- a/src/game_mm/mm_tools.c +++ b/src/game_mm/mm_tools.c @@ -524,6 +524,12 @@ void DrawElement_MM(int x, int y, int element) laser.fuse_x == x && laser.fuse_y == y) DrawGraphic_MM(x, y, IMG_MM_FUSE); + else if (element == EL_GRAY_BALL_OPENING) + DrawGraphic_MM(x, y, el_act2gfx(EL_BALL_GRAY, MM_ACTION_OPENING)); + else if (element == EL_BOMB_ACTIVE) + DrawGraphic_MM(x, y, el_act2gfx(EL_BOMB, MM_ACTION_ACTIVE)); + else if (element == EL_MINE_ACTIVE) + DrawGraphic_MM(x, y, el_act2gfx(EL_MINE, MM_ACTION_ACTIVE)); else DrawGraphic_MM(x, y, el2gfx(element)); } @@ -1292,6 +1298,11 @@ int el2gfx(int element) return el2img_mm(map_element(element)); } +int el_act2gfx(int element, int action) +{ + return el_act2img_mm(map_element(element), action); +} + void RedrawPlayfield_MM(void) { DrawLevel_MM();