mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ensure players can spawn before the podium starts
This commit is contained in:
parent
04eefa1acc
commit
2eba418334
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue