From 0d1b299a349594a9e793ada2c011349ce138a544 Mon Sep 17 00:00:00 2001 From: Dexter Date: Sun, 3 Nov 2013 23:55:16 +0000 Subject: [PATCH] initialize all classes to -1 in a memset (like old code) my dumb network right away idea was dumb and didnt really work --- mp/src/game/shared/ff/ff_sh_team_manager.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 28da8cdc..b5dea99a 100644 --- a/mp/src/game/shared/ff/ff_sh_team_manager.cpp +++ b/mp/src/game/shared/ff/ff_sh_team_manager.cpp @@ -110,12 +110,8 @@ CFF_SH_TeamManager *GetGlobalFFTeam( int iIndex ) void CFF_SH_TeamManager::Init( const char *pName, int iNumber ) { BaseClass::Init( pName, iNumber ); - NetworkProp()->SetUpdateInterval( 0.6f ); // 0.75f - // dexter, tweaked old code that memset directly to use set so the disabled defaults (-1) - // are sent networked in next update - for (int i = 0; i < CLASS_COUNT; i++) - m_iClasses.Set(i, -1); - + NetworkProp()->SetUpdateInterval( 0.75f ); + memset( &m_iClasses, -1, sizeof( m_iClasses ) ); m_iAllies = 0; }