From b138a83fcb06db773ce6114f29c22a0cc34ae66a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 1 Jun 2004 05:45:34 +0000 Subject: [PATCH] fix DifficultyMeter loading when playing a Course --- stepmania/src/ScreenGameplay.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index d63578bd88..38df10b54a 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -608,8 +608,11 @@ 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 ); /* Position it in LoadNextSong. */ this->AddChild( &m_DifficultyMeter[p] ); } @@ -903,6 +906,8 @@ void ScreenGameplay::LoadNextSong() } m_DifficultyIcon[p].SetFromSteps( p, GAMESTATE->m_pCurSteps[p] ); + + m_DifficultyMeter[p].SetName( m_sName + ssprintf(" DifficultyMeterP%d",p+1) ); m_DifficultyMeter[p].SetFromSteps( GAMESTATE->m_pCurSteps[p] ); /* The actual note data for scoring is the base class of Player. This includes