From 92a304ab8aad879d7702d1ad7fc43bbb2b321917 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 29 Jun 2011 23:25:42 -0400 Subject: [PATCH] Minor simplification. We should eventually make it not required to scroll horizontally. --- src/ScreenGameplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ScreenGameplay.cpp b/src/ScreenGameplay.cpp index 9936268534..475ca16250 100644 --- a/src/ScreenGameplay.cpp +++ b/src/ScreenGameplay.cpp @@ -1696,7 +1696,8 @@ void ScreenGameplay::Update( float fDeltaTime ) // update fGameplaySeconds STATSMAN->m_CurStageStats.m_fGameplaySeconds += fUnscaledDeltaTime; - if( GAMESTATE->m_Position.m_fSongBeat >= GAMESTATE->m_pCurSong->m_fFirstBeat && GAMESTATE->m_Position.m_fSongBeat < GAMESTATE->m_pCurSong->m_fLastBeat ) + float curBeat = GAMESTATE->m_Position.m_fSongBeat; + if( curBeat >= GAMESTATE->m_pCurSong->m_fFirstBeat && curBeat < GAMESTATE->m_pCurSong->m_fLastBeat ) { STATSMAN->m_CurStageStats.m_fStepsSeconds += fUnscaledDeltaTime;