Make what's going on with K_RetireBots in Y_Ticker/Y_EndIntermission more explicit, in case we add anything else here later.

This commit is contained in:
toaster 2022-10-13 12:41:27 +01:00 committed by NepDisk
parent d76b462a6d
commit bbf261a64e

View file

@ -814,10 +814,10 @@ void Y_Ticker(void)
if (intertype == int_race || intertype == int_battle || intertype == int_battletime)
{
//if (!(multiplayer && demo.playback)) // Don't advance to rankings in replays
{
if (!data.rankingsmode && sorttic != -1 && (intertic >= sorttic + 8))
{
// Anything with post-intermission consequences here should also occur in Y_EndIntermission.
K_RetireBots();
Y_CalculateMatchData(1, Y_CompareRank);
}
@ -1033,7 +1033,11 @@ void Y_StartIntermission(void)
//
void Y_EndIntermission(void)
{
K_RetireBots();
if (!data.rankingsmode)
{
K_RetireBots();
}
Y_UnloadData();
endtic = -1;