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:
@@ -184,8 +184,6 @@ void ScreenNetSelectBase::UpdateUsers()
|
|||||||
for( unsigned i=0; i< m_textUsers.size(); i++)
|
for( unsigned i=0; i< m_textUsers.size(); i++)
|
||||||
this->RemoveChild( &m_textUsers[i] );
|
this->RemoveChild( &m_textUsers[i] );
|
||||||
|
|
||||||
unsigned oldUsers = m_textUsers.size();
|
|
||||||
|
|
||||||
m_textUsers.clear();
|
m_textUsers.clear();
|
||||||
|
|
||||||
m_textUsers.resize( NSMAN->m_ActivePlayer.size() );
|
m_textUsers.resize( NSMAN->m_ActivePlayer.size() );
|
||||||
@@ -206,11 +204,8 @@ void ScreenNetSelectBase::UpdateUsers()
|
|||||||
tY = USERS_Y;
|
tY = USERS_Y;
|
||||||
m_textUsers[i].SetXY( tX, tY );
|
m_textUsers[i].SetXY( tX, tY );
|
||||||
|
|
||||||
if ( i > oldUsers )
|
ActorUtil::LoadAllCommands( m_textUsers[i], m_sName );
|
||||||
{
|
ActorUtil::OnCommand( m_textUsers[i] );
|
||||||
LOAD_ALL_COMMANDS( m_textUsers[i] );
|
|
||||||
ON_COMMAND( m_textUsers[i] );
|
|
||||||
}
|
|
||||||
|
|
||||||
m_textUsers[i].SetText( NSMAN->m_PlayerNames[NSMAN->m_ActivePlayer[i]] );
|
m_textUsers[i].SetText( NSMAN->m_PlayerNames[NSMAN->m_ActivePlayer[i]] );
|
||||||
m_textUsers[i].RunCommands( THEME->GetMetricA( m_sName,
|
m_textUsers[i].RunCommands( THEME->GetMetricA( m_sName,
|
||||||
|
|||||||
Reference in New Issue
Block a user