Ensure players can spawn before the podium starts

This commit is contained in:
Sally Coolatta 2023-02-27 19:31:20 -05:00
parent 04eefa1acc
commit 2eba418334

View file

@ -3142,6 +3142,7 @@ void F_TextPromptTicker(void)
boolean F_StartCeremony(void)
{
INT32 podiumMapNum = nummapheaders;
INT32 i;
if (podiummap
&& ((podiumMapNum = G_MapNumber(podiummap)) < nummapheaders)
@ -3153,6 +3154,16 @@ boolean F_StartCeremony(void)
maptol = mapheaderinfo[gamemap-1]->typeoflevel;
globalweather = mapheaderinfo[gamemap-1]->weather;
// Make sure all of the GAME OVER'd players can spawn
// and be present for the podium
for (i = 0; i < MAXPLAYERS; i++)
{
if (playeringame[i] && !players[i].spectator && !players[i].bot)
{
players[i].lives = max(1, players[i].lives);
}
}
G_DoLoadLevelEx(false, GS_CEREMONY);
r_splitscreen = 0; // Only one screen for the ceremony