From cba96ec28dc1a4f3113568715051570356c1cade Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 21 Mar 2004 17:51:58 +0000 Subject: [PATCH] Capitalize mod names in ActiveAttackList --- stepmania/src/ActiveAttackList.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ActiveAttackList.cpp b/stepmania/src/ActiveAttackList.cpp index c736c696f9..2cec3d26e1 100644 --- a/stepmania/src/ActiveAttackList.cpp +++ b/stepmania/src/ActiveAttackList.cpp @@ -31,9 +31,9 @@ void ActiveAttackList::Update( float fDelta ) { BitmapText::Update( fDelta ); - // refresh text only once every second - float fNowSeconds = RageTimer::GetTimeSinceStart(); - float fLastSeconds = RageTimer::GetTimeSinceStart() - fDelta; + // refresh text only once every 1/2 second + float fNowSeconds = RageTimer::GetTimeSinceStart()*2; + float fLastSeconds = RageTimer::GetTimeSinceStart()*2 - fDelta; if( (int)fNowSeconds != (int)fLastSeconds ) { @@ -58,6 +58,13 @@ void ActiveAttackList::Update( float fDelta ) if( iPos != -1 ) sDisplayText.erase( sDisplayText.begin(), sDisplayText.begin()+iPos+1 ); } + + // Capitalize all tokens + CStringArray asTokens; + split( sDisplayText, " ", asTokens ); + sDisplayText.erase( sDisplayText.begin(), sDisplayText.end() ); + for( int i=0; i