X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftoons.c;h=6f4fd2f7c49e3e79b7d0b340ded7ade00cf45829;hb=ecd387d33963ae80311924143b2f49eb29642e7f;hp=fec3907304fe4dd5a0e687d34b1585bdc3ca44c4;hpb=63f41483ea7866802a7f6382c1d1b7135a1cd86a;p=rocksndiamonds.git diff --git a/src/libgame/toons.c b/src/libgame/toons.c index fec39073..6f4fd2f7 100644 --- a/src/libgame/toons.c +++ b/src/libgame/toons.c @@ -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;