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:
Chris Danford
2005-02-23 20:40:46 +00:00
parent b45d0ddff3
commit 555d5aa2fe
8 changed files with 58 additions and 34 deletions
+1 -5
View File
@@ -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] );
}