X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;h=710383f3c608c03e4e3832fea3b13e6ab6cc3bbf;hb=2845fcd0832f6b527e582c77354e82d433e4459b;hp=8b307ea4482f1c54d0a892ea4250b689cc04ec37;hpb=2247f4c2ef407a8a0952cd0a5eefc642b30bfa82;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index 8b307ea4..710383f3 100644 --- a/src/anim.c +++ b/src/anim.c @@ -857,6 +857,10 @@ static void DrawGlobalAnimationsExt(int drawing_target, int drawing_stage) } } + // when restarting global animations, do not redraw them, but stop here + if (drawing_stage == DRAW_GLOBAL_ANIM_STAGE_RESTART) + return; + if (global.anim_status == GAME_MODE_LOADING) return; @@ -2155,7 +2159,7 @@ void RestartGlobalAnimsByStatus(int status) global.anim_status = status; // force restarting global animations by changed global animation status - SDLRedrawWindow(); + DrawGlobalAnimationsExt(DRAW_TO_SCREEN, DRAW_GLOBAL_ANIM_STAGE_RESTART); global.anim_status = anim_status_last; }