Use != instead of < to future-proof sv_team

Assume that this branch should apply to all team modes except `SV_TEAM_FORCED_SOLO` also when new team modes would get added after `SV_TEAM_FORCED_SOLO` in the future, as the values will never be changed and there is no relation between the order of the numeric values and the behavior.
This commit is contained in:
Robert Müller 2024-08-01 21:33:48 +02:00
parent f676a8b9ad
commit 7930eb9b79

View file

@ -172,7 +172,7 @@ void CGameTeams::OnCharacterStart(int ClientId)
}
}
if(g_Config.m_SvTeam < SV_TEAM_FORCED_SOLO && g_Config.m_SvMaxTeamSize != 2 && g_Config.m_SvPauseable)
if(g_Config.m_SvTeam != SV_TEAM_FORCED_SOLO && g_Config.m_SvMaxTeamSize != 2 && g_Config.m_SvPauseable)
{
for(int i = 0; i < MAX_CLIENTS; ++i)
{