From 8fcb66b3fa68e35ae57f6bc452765f854b5a2ca7 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Sat, 5 Aug 2017 12:26:05 +0100 Subject: [PATCH] Allow for new coop leveltime reloading --- src/p_setup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index 49ee5e196..2027ffb85 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -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)