Fix tournament mode cheat saving

This commit is contained in:
AJ Martinez 2023-11-16 13:58:06 -07:00
parent b772a66541
commit c4e1a98e6b
2 changed files with 9 additions and 1 deletions

View file

@ -5546,6 +5546,10 @@ void G_SaveGameData(void)
// Also save profiles here.
PR_SaveProfiles();
#ifdef DEVELOP
CONS_Alert(CONS_NOTICE, M_GetText("Gamedata saved.\n"));
#endif
}
#define VERSIONSIZE 16

View file

@ -80,13 +80,17 @@ static UINT8 cheatf_warp(void)
}
}
// Goofy, but this call needs to be before M_ClearMenus because that path
// calls G_LoadLevel, which will trigger a gamedata save. Garbage factory
if (success)
G_SetUsedCheats();
M_ClearMenus(true);
const char *text;
if (success)
{
G_SetUsedCheats();
S_StartSound(0, sfx_kc42);
text = M_GetText(