fixed bug with global animations in mode 'MAINONLY' not being restarted after mode...
authorHolger Schemel <info@artsoft.org>
Mon, 4 Dec 2017 21:30:17 +0000 (22:30 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 4 Dec 2017 21:30:17 +0000 (22:30 +0100)
src/anim.c

index 6f902d979e1b0a56e97b5f56009b3f1b70da7959..70600166488ce6cd34396635e7b5cedf467d9e45 100644 (file)
@@ -600,6 +600,11 @@ void DrawGlobalAnimationsExt(int drawing_target, int drawing_stage)
     if (drawing_target == DRAW_TO_FADE_TARGET)
       after_fading = TRUE;
 
+    // special case: changing from/to this screen is done without fading
+    if (global.anim_status == GAME_MODE_PSEUDO_TYPENAME ||
+       anim_status_last   == GAME_MODE_PSEUDO_TYPENAME)
+      after_fading = TRUE;
+
     // ---------- part 1 ------------------------------------------------------
     // start or stop global animations by change of game mode
     // (special handling of animations for "current screen" and "all screens")