fixed global animations from moving again immediately after being started
authorHolger Schemel <info@artsoft.org>
Tue, 24 May 2016 00:11:43 +0000 (02:11 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 24 May 2016 00:11:43 +0000 (02:11 +0200)
src/anim.c

index 83d8b17179eb00940cc01104ce5bbdf72bbcf281..3b69da7cd88ff69e3ee3dcf3d7c2f091b38caa93 100644 (file)
@@ -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];