From 213787ed2c55c79500404644ffb213224417a657 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 29 Apr 2005 01:34:52 +0000 Subject: [PATCH] there's no longer any performance penalty for passing out-of-range parameters; simplify --- stepmania/src/ScreenGameplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index c3fdd9fdbd..c4132669c0 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1618,9 +1618,8 @@ void ScreenGameplay::UpdateLights() { float fPositionSeconds = GAMESTATE->m_fMusicSeconds + LIGHTS_FALLOFF_SECONDS/2; // trigger the light a tiny bit early float fSongBeat = GAMESTATE->m_pCurSong->GetBeatFromElapsedTime( fPositionSeconds ); + const int iSongRow = BeatToNoteRowNotRounded( fSongBeat ); - int iSongRow = BeatToNoteRowNotRounded( fSongBeat ); - iSongRow = max( 0, iSongRow ); static int iRowLastCrossed = 0; float fBeatLast = roundf(NoteRowToBeat(iRowLastCrossed));