Allow for new coop leveltime reloading

This commit is contained in:
toasterbabe 2017-08-05 12:26:05 +01:00
parent e21ae8de7d
commit 8fcb66b3fa
1 changed files with 12 additions and 0 deletions

View File

@ -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)
P_LoadRecordGhosts();
else if (modeattacking == ATTACKING_NIGHTS && !demoplayback)