Move K_ResetCeremony

Properly carry over GP ranking data to the ceremony
This commit is contained in:
Sally Coolatta 2023-03-04 19:28:31 -05:00
parent 57f53a5531
commit 96477caa88

View file

@ -1472,8 +1472,6 @@ void G_DoLoadLevelEx(boolean resetplayer, gamestate_t newstate)
if (gamestate == GS_VOTING)
Y_EndVote();
K_ResetCeremony();
// cleanup
// Is this actually necessary? Doesn't F_StartTitleScreen already do a significantly more comprehensive check?
if (newstate == GS_TITLESCREEN)
@ -1500,6 +1498,8 @@ void G_DoLoadLevelEx(boolean resetplayer, gamestate_t newstate)
M_ClearMenus(true);
I_UpdateMouseGrab();
K_ResetCeremony();
for (i = 0; i < MAXPLAYERS; i++)
{
if (resetplayer || (playeringame[i] && players[i].playerstate == PST_DEAD))