mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Save gamedata once all pending unlocks have been updated
This commit is contained in:
parent
5ba1d4c197
commit
f0e5e1b71a
1 changed files with 3 additions and 0 deletions
|
|
@ -6831,7 +6831,10 @@ void M_ChallengesTick(void)
|
||||||
if (challengesmenu.pending && challengesmenu.currentunlock >= MAXUNLOCKABLES)
|
if (challengesmenu.pending && challengesmenu.currentunlock >= MAXUNLOCKABLES)
|
||||||
{
|
{
|
||||||
if ((challengesmenu.currentunlock = M_GetNextAchievedUnlock(true)) >= MAXUNLOCKABLES)
|
if ((challengesmenu.currentunlock = M_GetNextAchievedUnlock(true)) >= MAXUNLOCKABLES)
|
||||||
|
{
|
||||||
challengesmenu.pending = false;
|
challengesmenu.pending = false;
|
||||||
|
G_SaveGameData();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (challengesmenu.unlockanim >= UNLOCKTIME)
|
else if (challengesmenu.unlockanim >= UNLOCKTIME)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue