fix tick not being played on row 0

This commit is contained in:
Glenn Maynard
2004-04-04 04:12:26 +00:00
parent 8e24cb1801
commit 3177a36697
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -399,7 +399,9 @@ void ScreenEdit::PlayTicks()
const float fSongBeat = GAMESTATE->m_pCurSong->GetBeatFromElapsedTime( fPositionSeconds );
const int iSongRow = max( 0, BeatToNoteRowNotRounded( fSongBeat ) );
static int iRowLastCrossed = 0;
static int iRowLastCrossed = -1;
if( iSongRow < iRowLastCrossed )
iRowLastCrossed = -1;
int iTickRow = -1;
for( int r=iRowLastCrossed+1; r<=iSongRow; r++ ) // for each index we crossed since the last update
+3 -1
View File
@@ -1088,7 +1088,9 @@ void ScreenGameplay::PlayTicks()
const float fSongBeat = GAMESTATE->m_pCurSong->GetBeatFromElapsedTime( fPositionSeconds );
const int iSongRow = max( 0, BeatToNoteRowNotRounded( fSongBeat ) );
static int iRowLastCrossed = 0;
static int iRowLastCrossed = -1;
if( iSongRow < iRowLastCrossed )
iRowLastCrossed = -1;
int iTickRow = -1;
for( int r=iRowLastCrossed+1; r<=iSongRow; r++ ) // for each index we crossed since the last update