In gametypes without teams, if the player left the welcome dialog open for
the duration of sv_maxidle_playertospectator and then clicked join,
they were immediately moved back to spec for idling.
This could happen with any menu dialog or console command that allowed
joining without changing CSQC button state or mouse angle.
It was not noticeable prior to !1021 because pressing jump to join
changed the player's button state which reset their idlesince.
sv_maxidle_minplayers would have prevented this being found in local testing.
else if(time < CS(caller).jointime + MIN_SPEC_TIME)
CS(caller).autojoin_checked = -1;
}
+ CS(caller).parm_idlesince = time;
return; // never fall through to usage
}
{
KillPlayerForTeamChange(player);
PlayerScore_Clear(player); // works only in game modes without teams
- CS(player).parm_idlesince = time;
if (!IS_BOT_CLIENT(player))
TeamBalance_AutoBalanceBots();