From a38b69fd03ff9c734dc9af4db49c9fc072cdf95b Mon Sep 17 00:00:00 2001 From: Thad Ward Date: Mon, 8 Sep 2003 16:46:23 +0000 Subject: [PATCH] no need to check more frequently than one noterow. Step() now only gets called once per step. --- stepmania/src/BeginnerHelper.cpp | 14 +++++++------- stepmania/src/BeginnerHelper.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stepmania/src/BeginnerHelper.cpp b/stepmania/src/BeginnerHelper.cpp index 01c266a4b0..8dab184e61 100644 --- a/stepmania/src/BeginnerHelper.cpp +++ b/stepmania/src/BeginnerHelper.cpp @@ -30,7 +30,7 @@ BeginnerHelper::BeginnerHelper() LOG->Trace("BeginnerHelper::BeginnerHelper()"); m_bFlashEnabled = false; m_bInitialized = false; - m_fLastBeatChecked = 0; + m_iLastRowChecked = 0; this->AddChild(&m_sBackground); } @@ -246,8 +246,8 @@ void BeginnerHelper::Update( float fDeltaTime ) if(!m_bInitialized) return; - // the beat we want to check on this update - float fCurBeat = GAMESTATE->m_fSongBeat + 0.4f; + // the row we want to check on this update + int iCurRow = BeatToNoteRowNotRounded(GAMESTATE->m_fSongBeat + 0.4f); for(int pn = 0; pn < NUM_PLAYERS; pn++ ) { @@ -256,13 +256,13 @@ void BeginnerHelper::Update( float fDeltaTime ) if( (m_NoteData[pn].IsThereATapAtRow( BeatToNoteRowNotRounded((GAMESTATE->m_fSongBeat+0.01f)) ) ) ) FlashOnce(); - for(float fBeat=m_fLastBeatChecked; fBeat