don't use Name/ID to load DifficultyMeter. We only need the Name at load time, so pass it into Load and don't save it in the Actor.
This commit is contained in:
@@ -574,11 +574,7 @@ void ScreenGameplay::Init()
|
||||
/* Position it in LoadNextSong. */
|
||||
this->AddChild( &m_DifficultyIcon[p] );
|
||||
|
||||
// FIXME: Find a better way to handle this than changing the name
|
||||
CString sName = m_DifficultyMeter[p].GetName();
|
||||
m_DifficultyMeter[p].SetName( m_sName + ssprintf(" DifficultyMeterP%d",p+1) );
|
||||
m_DifficultyMeter[p].Load();
|
||||
m_DifficultyMeter[p].SetName( sName );
|
||||
m_DifficultyMeter[p].Load( m_sName + ssprintf(" DifficultyMeterP%d",p+1) );
|
||||
/* Position it in LoadNextSong. */
|
||||
this->AddChild( &m_DifficultyMeter[p] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user