X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;h=7dc621986b5e5f9fdd7138a58296697946796f1b;hb=08c0ff0ddf355eb27d6798ffb16e0b15c871872f;hp=9097d88cb9f3600a1988365386315449c9917e48;hpb=b8c4745f91cc4b85243de0cd9394b49e8cb3506e;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index 9097d88c..7dc62198 100644 --- a/src/anim.c +++ b/src/anim.c @@ -56,9 +56,10 @@ #define ANIM_STATE_RUNNING (1 << 2) /* values for global animation control */ -#define ANIM_START 0 -#define ANIM_CONTINUE 1 -#define ANIM_STOP 2 +#define ANIM_NO_ACTION 0 +#define ANIM_START 1 +#define ANIM_CONTINUE 2 +#define ANIM_STOP 3 struct GlobalAnimPartControlInfo @@ -520,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); @@ -567,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)