G_GetNextMap: More ironclad behaviour for encore update deferral

Resolves CallieMacN's bug
This commit is contained in:
toaster 2024-05-01 16:48:26 +01:00
parent 7c249318c4
commit ceae24f239

View file

@ -4128,7 +4128,23 @@ void G_GetNextMap(void)
return;
}
// tee up an Encore status (overridden by roundqueue, if applicable)
if (grandprixinfo.gp)
{
// Inherit from GP
deferencoremode = grandprixinfo.encore;
}
else if (K_CanChangeRules(true))
{
// Use cvar
deferencoremode = (cv_kartencore.value == 1);
}
else
{
// Inherit from current state
deferencoremode = encoremode;
}
forceresetplayers = forcespecialstage = false;
// go to next level