Fix overflow causing odd grades. (Bug courtesy of Microsoft Visual C++ 6.0.)

This commit is contained in:
Glenn Maynard
2003-12-03 04:28:46 +00:00
parent 3c673cf6ad
commit 0c0f4c2642
+3 -2
View File
@@ -1708,8 +1708,9 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
* not always, if m_bTwoPlayerRecovery is set. */ * not always, if m_bTwoPlayerRecovery is set. */
if( GAMESTATE->m_SongOptions.m_FailType != SongOptions::FAIL_OFF ) if( GAMESTATE->m_SongOptions.m_FailType != SongOptions::FAIL_OFF )
{ {
if( (m_pLifeMeter[p] && !m_pLifeMeter[p]->IsFailing()) || for( p=0; p<NUM_PLAYERS; p++ )
(m_pCombinedLifeMeter && !m_pCombinedLifeMeter->IsFailing((PlayerNumber)p)) ) if( (m_pLifeMeter[p] && m_pLifeMeter[p]->IsFailing()) ||
(m_pCombinedLifeMeter && m_pCombinedLifeMeter->IsFailing((PlayerNumber)p)) )
GAMESTATE->m_CurStageStats.bFailed[p] = true; GAMESTATE->m_CurStageStats.bFailed[p] = true;
} }