Improve handling for Tournament Mode

- Clearer user-facing messages
- Returns to title screen clearing menus in the normal case
This commit is contained in:
toaster 2023-06-07 17:55:26 +01:00
parent 7bda2f72cf
commit 1957f74853
2 changed files with 24 additions and 3 deletions

View file

@ -83,10 +83,31 @@ static UINT8 cheatf_warp(void)
if (success)
{
G_SetUsedCheats();
M_ClearMenus(true);
S_StartSound(0, sfx_kc42);
}
M_StartMessage(M_GetText("TOURNAMENT MODE ENGAGED!!\n\nIs what I would be saying if I actually\nimplemented anything special here.\n\nPress (B)\n"), NULL, MM_NOTHING);
M_StartMessage(M_GetText(
"TOURNAMENT MODE\n\
\nAll challenges temporarily unlocked.\n\
Saving is disabled - the game will\n\
return to normal on next launch.\n\
\n\
Press (B)\n"
), NULL, MM_NOTHING);
}
else
{
S_StartSound(0, sfx_s3k7b);
M_StartMessage(M_GetText(
"TOURNAMENT MODE\n\
\nThis is the correct password, but.\n\
you already have every challenge\n\
unlocked, so saving is still allowed!\n\
\n\
Press (B)\n"
), NULL, MM_NOTHING);
}
return 1;
}

View file

@ -180,7 +180,7 @@ void M_ExtrasTick(void)
M_Challenges(0);
}
}
else if (cht_Interpret(cv_dummyextraspassword.string) == true)
else if (cht_Interpret(cv_dummyextraspassword.string) == true && menuactive == true)
{
M_InitExtras(-1);
}