From bf8424ae52c16d1f2f7fa02c69652633545c77ae Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 4 May 2005 18:30:31 +0000 Subject: [PATCH] fix dupe command errors --- stepmania/src/PercentageDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/PercentageDisplay.cpp b/stepmania/src/PercentageDisplay.cpp index 045db75f38..2d983850ea 100644 --- a/stepmania/src/PercentageDisplay.cpp +++ b/stepmania/src/PercentageDisplay.cpp @@ -37,7 +37,7 @@ void PercentageDisplay::Load( PlayerNumber pn, PlayerStageStats* pSource, const m_textPercent.LoadFromFont( THEME->GetPathF(sMetricsGroup,"text") ); ActorUtil::SetXYAndOnCommand( m_textPercent, sMetricsGroup ); - m_textPercent.AddCommand( "Off", THEME->GetMetricA(sMetricsGroup, m_textPercent.GetName()+"OffCommand") ); + ASSERT( m_textPercent.HasCommand("Off") ); this->AddChild( &m_textPercent ); if( !PREFSMAN->m_bDancePointsForOni && (bool)PERCENT_USE_REMAINDER ) @@ -45,7 +45,7 @@ void PercentageDisplay::Load( PlayerNumber pn, PlayerStageStats* pSource, const m_textPercentRemainder.SetName( ssprintf("PercentRemainderP%d",pn+1) ); m_textPercentRemainder.LoadFromFont( THEME->GetPathF(sMetricsGroup,"remainder") ); ActorUtil::SetXYAndOnCommand( m_textPercentRemainder, sMetricsGroup ); - m_textPercentRemainder.AddCommand( "Off", THEME->GetMetricA(sMetricsGroup, m_textPercentRemainder.GetName()+"OffCommand") ); + ASSERT( m_textPercentRemainder.HasCommand("Off") ); m_textPercentRemainder.SetText( "456" ); this->AddChild( &m_textPercentRemainder ); }