From ab74e7e1032917ffd5fa0636f7e99a339c908141 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 30 Mar 2003 20:54:37 +0000 Subject: [PATCH] don't update alive time for dead players --- stepmania/src/ScreenGameplay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index d2e97fea43..c75dcc4199 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -779,11 +779,11 @@ void ScreenGameplay::Update( float fDeltaTime ) { case STATE_DANCING: // - // Update players' alive time + // Update living players' alive time // for( pn=0; pnIsPlayerEnabled(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