From: Holger Schemel Date: Tue, 24 May 2016 00:11:43 +0000 (+0200) Subject: fixed global animations from moving again immediately after being started X-Git-Tag: 4.0.0.0-rc3~56 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b6c5148b52b3c52038faef5ad80ef28bc9f623d7;p=rocksndiamonds.git fixed global animations from moving again immediately after being started --- diff --git a/src/anim.c b/src/anim.c index 83d8b171..3b69da7c 100644 --- a/src/anim.c +++ b/src/anim.c @@ -525,6 +525,9 @@ void DrawGlobalAnimationsExt(int drawing_target, int drawing_stage) if (!setup.toons) return; + if (drawing_stage == DRAW_GLOBAL_ANIM_STAGE_1) + DoAnimationExt(); + // always start with reliable default values (no animation actions) for (mode_nr = 0; mode_nr < NUM_GAME_MODES; mode_nr++) game_mode_anim_action[mode_nr] = ANIM_NO_ACTION; @@ -584,9 +587,6 @@ void DrawGlobalAnimationsExt(int drawing_target, int drawing_stage) if (global.anim_status == GAME_MODE_LOADING) return; - if (drawing_stage == DRAW_GLOBAL_ANIM_STAGE_1) - DoAnimationExt(); - for (mode_nr = 0; mode_nr < NUM_GAME_MODES; mode_nr++) { struct GlobalAnimControlInfo *ctrl = &global_anim_ctrl[mode_nr];