added support for custom graphics for many elements of MM game engine
[rocksndiamonds.git] / src / game_mm / mm_tools.c
index 3fb8b4bb64da0b2f7e4e6a284c683368dcd6f510..1f23bc902c0114420e544d7ed68635a391cb98a1 100644 (file)
@@ -75,7 +75,9 @@ void DrawGraphic_MM(int x, int y, int graphic)
   }
 #endif
 
-  DrawGraphicExt_MM(drawto_field, cFX + x * TILEX, cFY + y * TILEY, graphic);
+  int frame = getGraphicAnimationFrameXY(graphic, x, y);
+
+  DrawGraphicAnimation_MM(x, y, graphic, frame);
 
   MarkTileDirty(x, y);
 }
@@ -1291,9 +1293,6 @@ int el2gfx(int element)
 
   switch (element)
   {
-    case EL_LIGHTBALL:
-      return IMG_MM_LIGHTBALL_RED + RND(3);
-
     default:
       return el2img_mm(element);
   }