X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fcartoons.c;h=8aee8a261633890fb2640692db382286a762df41;hb=7b31a77eec53ed2b96d5924a743b0706c9e4b11c;hp=7cc59d1a05454557a136b2b6629c245993a87473;hpb=33df7a5ca87e883c2b718171fd7d05c22fc0353f;p=rocksndiamonds.git diff --git a/src/cartoons.c b/src/cartoons.c index 7cc59d1a..8aee8a26 100644 --- a/src/cartoons.c +++ b/src/cartoons.c @@ -125,26 +125,38 @@ void HandleAnimation(int mode) reset_delay = TRUE; /* Fill empty backbuffer for animation functions */ - if (direct_draw_on && game_status==PLAYING) + if (direct_draw_on && game_status == PLAYING) { int xx,yy; SetDrawtoField(DRAW_BACKBUFFER); - for(xx=0;xxdirection & (ANIMDIR_LEFT | ANIMDIR_RIGHT)); vert_move = (anim->direction & (ANIMDIR_UP | ANIMDIR_DOWN)); - anim_delay_value = 100/anim->frames_per_second; + anim_delay_value = 1000/anim->frames_per_second; frame = 0; if (horiz_move) @@ -449,7 +461,7 @@ BOOL AnimateToon(int toon_nr, BOOL restart) pos_y >= FULL_SYSIZE + anim->stepsize) return(TRUE); - if (!DelayReached(&anim_delay,anim_delay_value)) + if (!DelayReached(&anim_delay, anim_delay_value)) { if (game_status==HELPSCREEN && !restart) DrawAnim(anim_pixmap,anim_clip_gc,