diff --git a/mp/src/game/shared/ff/ff_sh_team_manager.cpp b/mp/src/game/shared/ff/ff_sh_team_manager.cpp index b5dea99a..2e21d06f 100644 --- a/mp/src/game/shared/ff/ff_sh_team_manager.cpp +++ b/mp/src/game/shared/ff/ff_sh_team_manager.cpp @@ -68,7 +68,7 @@ static void ClassRestrictionChange( IConVar *var, const char *pOldString, float if ( idx == -1 ) return; - pTeam->UpdateLimit( idx ); + pTeam->UpdateClassLimit( idx ); } } @@ -143,10 +143,10 @@ void CFF_SH_TeamManager::SetClassLimit( int iClass, int iLimit ) return; m_iClassesMap[iClass] = iLimit; - UpdateLimit( iClass ); + UpdateClassLimit( iClass ); } -void CFF_SH_TeamManager::UpdateLimit( int iClassIdx ) +void CFF_SH_TeamManager::UpdateClassLimit( int iClassIdx ) { // if the map or cvar is 0 it will always use the other int curCvar = classRestrictionCvars[iClassIdx].GetInt(); @@ -157,10 +157,10 @@ void CFF_SH_TeamManager::UpdateLimit( int iClassIdx ) DevMsg("CFF_SH_TeamManager::UpdateLimit: set class idx %i limit to %i\n", iClassIdx, newVal ); } -void CFF_SH_TeamManager::UpdateAllLimits( void ) +void CFF_SH_TeamManager::UpdateAllClassLimits( void ) { for ( int i = 0; i < ARRAYSIZE(m_iClassesMap); i++ ) - UpdateLimit( i ); + UpdateClassLimit( i ); } void CFF_SH_TeamManager::SetDeaths( int iDeaths ) diff --git a/mp/src/game/shared/ff/ff_sh_team_manager.h b/mp/src/game/shared/ff/ff_sh_team_manager.h index 06d833eb..837db784 100644 --- a/mp/src/game/shared/ff/ff_sh_team_manager.h +++ b/mp/src/game/shared/ff/ff_sh_team_manager.h @@ -58,8 +58,8 @@ public: void SetName( const char *pName ); void SetFortPoints( int iFortPoints ); void SetTeamLimits( int ); - void UpdateLimit( int idx ); - void UpdateAllLimits( void ); + void UpdateClassLimit( int idx ); + void UpdateAllClassLimits( void ); #endif // GAME_DLL