From ebedd8ed3bb32de36d0038e2ddc72b85ceedf10e Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 21 Mar 2004 18:49:25 +0000 Subject: [PATCH] clean up mod strings before displaying --- stepmania/src/ActiveAttackList.cpp | 51 +++++++++++++++++++----------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/stepmania/src/ActiveAttackList.cpp b/stepmania/src/ActiveAttackList.cpp index 2cec3d26e1..eba72a70da 100644 --- a/stepmania/src/ActiveAttackList.cpp +++ b/stepmania/src/ActiveAttackList.cpp @@ -49,27 +49,40 @@ void ActiveAttackList::Update( float fDelta ) if( !attack.bOn ) continue; /* hasn't started yet */ - CString sDisplayText = attack.sModifier; - - // Strip out the approach speed token - if( !sDisplayText.empty() && sDisplayText[0]=='*' ) + CString sMods = attack.sModifier; + CStringArray asMods; + split( sMods, ", ", asMods ); + for( int j=0; jSetText( s ); // BitmapText will not rebuild vertices if these strings are the same.