Faster ring respawn once again

This commit is contained in:
Sally Coolatta 2023-04-29 12:33:15 -04:00
parent 2d169202f2
commit f4e14f5fe3

View file

@ -11652,7 +11652,7 @@ void P_RespawnSpecials(void)
}
else if (pcount > 1)
{
time = (120 * TICRATE) / (pcount - 1);
time = (120 * TICRATE) / (((pcount - 1) * (pcount - 1)) / 3) + 1);
// 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.
@ -11662,10 +11662,10 @@ void P_RespawnSpecials(void)
time = (time * 3) / max(1, mapheaderinfo[gamemap-1]->numlaps);
}
if (time < 10*TICRATE)
if (time < 2*TICRATE)
{
// Ensure it doesn't go into absurdly low values
time = 10*TICRATE;
time = 2*TICRATE;
}
}
}