From dd0ac9eb18a14a582b0e34a593d758c0acae6b8a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 24 Mar 2004 07:13:35 +0000 Subject: [PATCH] make ActiveAttackList update faster --- stepmania/src/ActiveAttackList.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ActiveAttackList.cpp b/stepmania/src/ActiveAttackList.cpp index f1c693b0ea..4d00413987 100644 --- a/stepmania/src/ActiveAttackList.cpp +++ b/stepmania/src/ActiveAttackList.cpp @@ -32,10 +32,11 @@ void ActiveAttackList::Update( float fDelta ) BitmapText::Update( fDelta ); // refresh text only once every 1/2 second - float fNowSeconds = RageTimer::GetTimeSinceStart()*2; - float fLastSeconds = RageTimer::GetTimeSinceStart()*2 - fDelta; + float fNowSeconds = RageTimer::GetTimeSinceStart(); + float fLastSeconds = RageTimer::GetTimeSinceStart() - fDelta; + bool bTimeToUpdate = froundf(fNowSeconds,0.5f) != froundf(fLastSeconds,0.5f); - if( (int)fNowSeconds != (int)fLastSeconds ) + if( bTimeToUpdate ) { CString s;