don't update alive time for dead players

This commit is contained in:
Glenn Maynard
2003-03-30 20:54:37 +00:00
parent c34b21d5c4
commit ab74e7e103
+3 -3
View File
@@ -779,11 +779,11 @@ void ScreenGameplay::Update( float fDeltaTime )
{
case STATE_DANCING:
//
// Update players' alive time
// Update living players' alive time
//
for( pn=0; pn<NUM_PLAYERS; pn++ )
if( GAMESTATE->IsPlayerEnabled(pn) )
GAMESTATE->m_CurStageStats.fAliveSeconds[pn] += fDeltaTime;
if( GAMESTATE->IsPlayerEnabled(pn) && !GAMESTATE->m_CurStageStats.bFailed[pn])
GAMESTATE->m_CurStageStats.fAliveSeconds [pn] += fDeltaTime;
//
// Check for end of song