rnd-20060102-2-src
[rocksndiamonds.git] / src / libgame / toons.c
index fec3907304fe4dd5a0e687d34b1585bdc3ca44c4..6f4fd2f7c49e3e79b7d0b340ded7ade00cf45829 100644 (file)
@@ -69,6 +69,10 @@ int getAnimationFrame(int num_frames, int delay, int mode, int start_frame,
     else
       frame = gfx.anim_random_frame % num_frames;
   }
+  else if (mode & (ANIM_CE_VALUE | ANIM_CE_SCORE))
+  {
+    frame = sync_frame % num_frames;
+  }
 
   if (mode & ANIM_REVERSE)             /* use reverse animation direction */
     frame = num_frames - frame - 1;