initialize all classes to -1 in a memset (like old code)

my dumb network right away idea was dumb and didnt really work
This commit is contained in:
Dexter 2013-11-03 23:55:16 +00:00 committed by squeek
parent c0625ca8d2
commit 0d1b299a34

View file

@ -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;
}