mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Faster ring respawn once again
This commit is contained in:
parent
2d169202f2
commit
f4e14f5fe3
1 changed files with 3 additions and 3 deletions
|
|
@ -11652,7 +11652,7 @@ void P_RespawnSpecials(void)
|
||||||
}
|
}
|
||||||
else if (pcount > 1)
|
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.
|
// 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.
|
// 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);
|
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
|
// Ensure it doesn't go into absurdly low values
|
||||||
time = 10*TICRATE;
|
time = 2*TICRATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue