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
+2 -2
View File
@@ -779,10 +779,10 @@ 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) )
if( GAMESTATE->IsPlayerEnabled(pn) && !GAMESTATE->m_CurStageStats.bFailed[pn])
GAMESTATE->m_CurStageStats.fAliveSeconds [pn] += fDeltaTime;
//