mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Allow for new coop leveltime reloading
This commit is contained in:
parent
e21ae8de7d
commit
8fcb66b3fa
1 changed files with 12 additions and 0 deletions
|
|
@ -2845,6 +2845,18 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((netgame || multiplayer) && gametype == GT_COOP && cv_coopstarposts.value == 2)
|
||||||
|
{
|
||||||
|
// is this a hack? maybe
|
||||||
|
tic_t maxstarposttime = 0;
|
||||||
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
|
{
|
||||||
|
if (playeringame[i] && players[i].starposttime > maxstarposttime)
|
||||||
|
maxstarposttime = players[i].starposttime;
|
||||||
|
}
|
||||||
|
leveltime = maxstarposttime;
|
||||||
|
}
|
||||||
|
|
||||||
if (modeattacking == ATTACKING_RECORD && !demoplayback)
|
if (modeattacking == ATTACKING_RECORD && !demoplayback)
|
||||||
P_LoadRecordGhosts();
|
P_LoadRecordGhosts();
|
||||||
else if (modeattacking == ATTACKING_NIGHTS && !demoplayback)
|
else if (modeattacking == ATTACKING_NIGHTS && !demoplayback)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue