From e088d48fe7abba9bda3420db14ae9bb2d94fbe96 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 21 Mar 2004 17:22:51 +0000 Subject: [PATCH] strip approach speed when showing mods in ActiveAttackList --- stepmania/src/ActiveAttackList.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/ActiveAttackList.cpp b/stepmania/src/ActiveAttackList.cpp index 67efe361df..c736c696f9 100644 --- a/stepmania/src/ActiveAttackList.cpp +++ b/stepmania/src/ActiveAttackList.cpp @@ -50,6 +50,15 @@ void ActiveAttackList::Update( float fDelta ) continue; /* hasn't started yet */ CString sDisplayText = attack.sModifier; + + // Strip out the approach speed token + if( !sDisplayText.empty() && sDisplayText[0]=='*' ) + { + int iPos = sDisplayText.Find(' '); + if( iPos != -1 ) + sDisplayText.erase( sDisplayText.begin(), sDisplayText.begin()+iPos+1 ); + } + if( s.empty() ) s = sDisplayText; else