From: Holger Schemel Date: Mon, 4 Dec 2017 21:30:17 +0000 (+0100) Subject: fixed bug with global animations in mode 'MAINONLY' not being restarted after mode... X-Git-Tag: 4.0.1.1~27 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=7ac743d295c6e08f80f5649dd95112e3a94f0570 fixed bug with global animations in mode 'MAINONLY' not being restarted after mode 'TYPENAME' (introduced with commit 2722043) --- diff --git a/src/anim.c b/src/anim.c index 6f902d97..70600166 100644 --- a/src/anim.c +++ b/src/anim.c @@ -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")