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
+4 -3
View File
@@ -1708,9 +1708,10 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
* not always, if m_bTwoPlayerRecovery is set. */
if( GAMESTATE->m_SongOptions.m_FailType != SongOptions::FAIL_OFF )
{
if( (m_pLifeMeter[p] && !m_pLifeMeter[p]->IsFailing()) ||
(m_pCombinedLifeMeter && !m_pCombinedLifeMeter->IsFailing((PlayerNumber)p)) )
GAMESTATE->m_CurStageStats.bFailed[p] = true;
for( p=0; p<NUM_PLAYERS; p++ )
if( (m_pLifeMeter[p] && m_pLifeMeter[p]->IsFailing()) ||
(m_pCombinedLifeMeter && m_pCombinedLifeMeter->IsFailing((PlayerNumber)p)) )
GAMESTATE->m_CurStageStats.bFailed[p] = true;
}
/* If all players have *really* failed (bFailed, not the life meter or