Skip to content

Commit

Permalink
Use != instead of < to future-proof sv_team
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Robyt3 committed Aug 1, 2024
1 parent f676a8b commit 7930eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/teams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7930eb9

Please sign in to comment.