Challenges screen: Always digest pendingkeyrounds when running out of things to look at

Without this commit, if you didn't unlock a Chao Key, it would always handle unlocks, then when you returned to the menu a second time digest any pending key rounds. (Chao Key earning was always correct.)
This commit is contained in:
toaster 2023-03-31 16:01:18 +01:00
parent 78b4b6f5ec
commit 0708c282fc

View file

@ -397,6 +397,12 @@ void M_ChallengesTick(void)
// We got one!
M_ChallengesAutoFocus(newunlock, false);
}
else if (gamedata->pendingkeyrounds > 0
&& (gamedata->chaokeys < GDMAX_CHAOKEYS))
{
// Get ready to finish with pending chao key round tallying.
challengesmenu.chaokeyadd = true;
}
else
{
// All done! Let's save the unlocks we've busted open.