X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=8610e5103476b976aa2731326f38226e22fb99a8;hb=2176d1de29652bc9e8db1baa283fdc1c4e99e674;hp=bd235f94435c6eac8ed3f23086235b05ac84c8f2;hpb=bc6e19a34de8c4c290dc3c6bee70ac805525070b;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index bd235f94..8610e510 100644 --- a/src/tools.c +++ b/src/tools.c @@ -8277,7 +8277,17 @@ void JoinRectangles(int *x, int *y, int *width, int *height, void SetAnimStatus(int anim_status_new) { + if (anim_status_new == GAME_MODE_MAIN) + anim_status_new = GAME_MODE_PSEUDO_MAINONLY; + global.anim_status_next = anim_status_new; + + // directly set screen modes that are entered without fading + if ((global.anim_status == GAME_MODE_PSEUDO_MAINONLY && + global.anim_status_next == GAME_MODE_PSEUDO_TYPENAME) || + (global.anim_status == GAME_MODE_PSEUDO_TYPENAME && + global.anim_status_next == GAME_MODE_PSEUDO_MAINONLY)) + global.anim_status = global.anim_status_next; } void SetGameStatus(int game_status_new)