fix subtle bugs that caused inaccurate judgment totals with AI player

This commit is contained in:
Chris Danford
2003-04-10 05:46:31 +00:00
parent 17e9a7d777
commit 04145caf72
20 changed files with 88 additions and 74 deletions
+2 -8
View File
@@ -943,16 +943,10 @@ void ScreenGameplay::Update( float fDeltaTime )
int iRowNow = BeatToNoteRow( GAMESTATE->m_fSongBeat );
if( iRowNow >= 0 )
{
for( int r=m_iRowLastCrossed+1; r<=iRowNow; r++ ) // for each index we crossed since the last update
{
for( ; m_iRowLastCrossed <= iRowNow; m_iRowLastCrossed++ ) // for each index we crossed since the last update
for( pn=0; pn<NUM_PLAYERS; pn++ )
{
if( GAMESTATE->IsPlayerEnabled(pn) )
m_Player[pn].CrossedRow( r );
}
}
m_iRowLastCrossed = iRowNow;
m_Player[pn].CrossedRow( m_iRowLastCrossed );
}
if( GAMESTATE->m_SongOptions.m_bAssistTick && IsTimeToPlayTicks())