From 0c0f4c2642ac3cd0a597baad9c8e5bbb5c369082 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Dec 2003 04:28:46 +0000 Subject: [PATCH] Fix overflow causing odd grades. (Bug courtesy of Microsoft Visual C++ 6.0.) --- stepmania/src/ScreenGameplay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 7b97b52ebb..d4c16d0729 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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; pIsFailing()) || + (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