From 08c0ff0ddf355eb27d6798ffb16e0b15c871872f Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 24 May 2016 01:33:16 +0200 Subject: [PATCH] fixed doing global animation stuff when it is disabled in setup menu --- src/anim.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/anim.c b/src/anim.c index c5e1676e..7dc62198 100644 --- a/src/anim.c +++ b/src/anim.c @@ -521,6 +521,9 @@ void DrawGlobalAnimationsExt(int drawing_stage) { int mode_nr; + if (!setup.toons) + return; + if (global.anim_status != anim_status_last) { boolean before_fading = (global.anim_status == GAME_MODE_PSEUDO_FADING); @@ -568,7 +571,7 @@ void DrawGlobalAnimationsExt(int drawing_stage) anim_status_last = global.anim_status; } - if (!setup.toons || global.anim_status == GAME_MODE_LOADING) + if (global.anim_status == GAME_MODE_LOADING) return; if (drawing_stage == DRAW_GLOBAL_ANIM_STAGE_1) -- 2.34.1