rnd-20021127-1-src
[rocksndiamonds.git] / src / tools.c
index cfaa4ca2d93130fa1102e2a4fe16f2a357353f3c..56822ab68a2736628fa308aec44e2e9adaa07b20 100644 (file)
@@ -803,31 +803,17 @@ int getGraphicAnimationFrame(int graphic, int sync_frame)
 
 void DrawGraphicAnimationExt(int x, int y, int graphic, int mask_mode)
 {
-#if 0
-  int delay = new_graphic_info[graphic].anim_delay;
-
-  if (!(FrameCounter % delay) && IN_SCR_FIELD(SCREENX(x), SCREENY(y)))
-#else
-  if (IN_SCR_FIELD(SCREENX(x), SCREENY(y)))
-#endif
+  if (IN_SCR_FIELD(x, y))
   {
     int frame = getGraphicAnimationFrame(graphic, -1);
 
     if (mask_mode == USE_MASKING)
-      DrawGraphicThruMask(SCREENX(x), SCREENY(y), graphic, frame);
+      DrawGraphicThruMask(x, y, graphic, frame);
     else
-      DrawGraphic(SCREENX(x), SCREENY(y), graphic, frame);
+      DrawGraphic(x, y, graphic, frame);
   }
 }
 
-#if 0
-void DrawOldGraphicAnimation(int x, int y, int graphic,
-                            int frames, int delay, int mode)
-{
-  DrawGraphicAnimationExt(x, y, graphic, frames, delay, mode, NO_MASKING);
-}
-#endif
-
 void DrawGraphicAnimation(int x, int y, int graphic)
 {
   DrawGraphicAnimationExt(x, y, graphic, NO_MASKING);