Don't force a NEW CHALLENGER!! map reset if spectators enter during the introtime.

Doesn't affect the conditions that allow entry -- just avoids pointlessly resetting the map if it occurs during the period where literally nothing can happen.
This commit is contained in:
toaster 2022-08-11 22:45:32 +01:00
parent 66ac4bc309
commit c657a47d56

View file

@ -6405,7 +6405,7 @@ void K_CheckSpectateStatus(void)
}
// Reset the match if you're in an empty server
if (!mapreset && gamestate == GS_LEVEL && (previngame < 2 && numingame >= 2))
if (!mapreset && gamestate == GS_LEVEL && (leveltime > introtime) && (previngame < 2 && numingame >= 2))
{
S_ChangeMusicInternal("chalng", false); // COME ON
mapreset = 3*TICRATE; // Even though only the server uses this for game logic, set for everyone for HUD