From 0492e9b5a0bdd299ef35150fc54424792fffff01 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Nov 2003 01:41:21 +0000 Subject: [PATCH] fix "-1" bpm output --- stepmania/src/BPMDisplay.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/BPMDisplay.cpp b/stepmania/src/BPMDisplay.cpp index 64d0e358dd..c444a210d7 100644 --- a/stepmania/src/BPMDisplay.cpp +++ b/stepmania/src/BPMDisplay.cpp @@ -113,10 +113,14 @@ void BPMDisplay::SetBPMRange( const vector &BPMS ) MaxBPM = max( MaxBPM, (int) roundf(BPMS[i]) ); } if( MinBPM == MaxBPM ) - m_textBPM.SetText( ssprintf("%i", MinBPM) ); + { + if( MinBPM == -1 ) + m_textBPM.SetText( "..." ); // random + else + m_textBPM.SetText( ssprintf("%i", MinBPM) ); + } else m_textBPM.SetText( ssprintf("%i%s%i", MinBPM, SEPARATOR.c_str(), MaxBPM) ); - return; } else { m_BPMS.clear(); for( i = 0; i < BPMS.size(); ++i ) @@ -151,7 +155,6 @@ void BPMDisplay::SetBPMRange( const vector &BPMS ) m_textBPM.SetDiffuse( NORMAL_COLOR ); m_sprLabel->SetDiffuse( NORMAL_COLOR ); } - } void BPMDisplay::CycleRandomly()