rnd-20021125-1-src
[rocksndiamonds.git] / src / game.c
index 8db4cefb8a6c0183add60ec991e90ae445e7cf7c..0a98a0b4692f7a23a70d9277ced4ee5766300eae 100644 (file)
@@ -4234,7 +4234,11 @@ void EdelsteinFunkeln(int x, int y)
       if (setup.direct_draw && MovDelay[x][y])
        SetDrawtoField(DRAW_BUFFERED);
 
+#if 0
       DrawGraphic(SCREENX(x), SCREENY(y), el2img(Feld[x][y]), 0);
+#else
+      DrawGraphicAnimation(x, y, el2img(Feld[x][y]));
+#endif
 
       if (MovDelay[x][y])
       {
@@ -4884,6 +4888,13 @@ void GameActions()
     {
       StartMoving(x, y);
 
+#if 1
+      if (Feld[x][y] == EL_EMERALD &&
+         new_graphic_info[IMG_EMERALD].anim_frames > 1 &&
+         !IS_MOVING(x, y))
+       DrawGraphicAnimation(x, y, IMG_EMERALD);
+#endif
+
       if (IS_GEM(element) || element == EL_SP_INFOTRON)
        EdelsteinFunkeln(x, y);
     }