mirror of
https://github.com/fortressforever/fortressforever-2013.git
synced 2024-11-10 07:11:45 +00:00
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:
parent
c0625ca8d2
commit
0d1b299a34
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue