From 9c71415b8fa52e0f6812f7726af5d24e6465eac3 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Tue, 23 Aug 2022 00:17:38 -0400 Subject: [PATCH] Speed up ring respawn for anything more than 1v1s --- src/p_mobj.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 63af474e4..d3ea3a411 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11008,16 +11008,20 @@ void P_RespawnSpecials(void) else { if (pcount == 1) // No respawn when alone + { return; + } else if (pcount > 1) { - time = (120 - ((pcount-2) * 10)) * TICRATE; + time = (120 - ((pcount-2) * 20)) * TICRATE; // If the map is longer or shorter than 3 laps, then adjust ring respawn to account for this. // 5 lap courses would have more retreaded ground, while 2 lap courses would have less. if ((mapheaderinfo[gamemap-1]->numlaps != 3) - && !(mapheaderinfo[gamemap-1]->levelflags & LF_SECTIONRACE)) + && !(mapheaderinfo[gamemap-1]->levelflags & LF_SECTIONRACE)) + { time = (time * 3) / max(1, mapheaderinfo[gamemap-1]->numlaps); + } if (time < 10*TICRATE) {