This code is very strange, but all of the actors need to have their commands loaded since these were what were missing Off commands.

This commit is contained in:
Steve Checkoway
2007-08-15 06:20:23 +00:00
parent e332565c9d
commit 8d8e707347
+2 -7
View File
@@ -184,8 +184,6 @@ void ScreenNetSelectBase::UpdateUsers()
for( unsigned i=0; i< m_textUsers.size(); i++)
this->RemoveChild( &m_textUsers[i] );
unsigned oldUsers = m_textUsers.size();
m_textUsers.clear();
m_textUsers.resize( NSMAN->m_ActivePlayer.size() );
@@ -206,11 +204,8 @@ void ScreenNetSelectBase::UpdateUsers()
tY = USERS_Y;
m_textUsers[i].SetXY( tX, tY );
if ( i > oldUsers )
{
LOAD_ALL_COMMANDS( m_textUsers[i] );
ON_COMMAND( m_textUsers[i] );
}
ActorUtil::LoadAllCommands( m_textUsers[i], m_sName );
ActorUtil::OnCommand( m_textUsers[i] );
m_textUsers[i].SetText( NSMAN->m_PlayerNames[NSMAN->m_ActivePlayer[i]] );
m_textUsers[i].RunCommands( THEME->GetMetricA( m_sName,