rnd-20030125-1-src
[rocksndiamonds.git] / src / libgame / toons.c
index 5dc74a99f6ad5d779ca30d2c01671404add0b0e1..8ecc0d5d6672b1a1181fc4fab9f279763bcaba35 100644 (file)
@@ -64,7 +64,7 @@ int getAnimationFrame(int num_frames, int delay, int mode, int start_frame,
   {
     /* note: expect different frames for the same delay cycle! */
 
-    frame = SimpleRND(num_frames);
+    frame = anim.simple_random_value % num_frames;
   }
 
   if (mode & ANIM_REVERSE)             /* use reverse animation direction */