X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftoons.c;h=6f4fd2f7c49e3e79b7d0b340ded7ade00cf45829;hb=37a06df577bbfd00f4b361f92cacb0d97036ba93;hp=9f4c1fe49b727e6101605c6bc29ab92085476236;hpb=67df7f8e7d36881be28794e9744dab2136679cc1;p=rocksndiamonds.git diff --git a/src/libgame/toons.c b/src/libgame/toons.c index 9f4c1fe4..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; @@ -88,7 +92,7 @@ static int get_toon_direction(char *direction_string_raw) strcmp(direction_string, "right") == 0 ? MV_RIGHT : strcmp(direction_string, "up") == 0 ? MV_UP : strcmp(direction_string, "down") == 0 ? MV_DOWN : - MV_NO_MOVING); + MV_NONE); free(direction_string);