Save gamedata once all pending unlocks have been updated

This commit is contained in:
toaster 2022-11-30 19:27:26 +00:00
parent 5ba1d4c197
commit f0e5e1b71a

View file

@ -6831,7 +6831,10 @@ void M_ChallengesTick(void)
if (challengesmenu.pending && challengesmenu.currentunlock >= MAXUNLOCKABLES)
{
if ((challengesmenu.currentunlock = M_GetNextAchievedUnlock(true)) >= MAXUNLOCKABLES)
{
challengesmenu.pending = false;
G_SaveGameData();
}
}
else if (challengesmenu.unlockanim >= UNLOCKTIME)
{