From 230a20a37d6f1949d67817b7f0c4fff990a04434 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 25 Dec 2003 07:27:23 +0000 Subject: [PATCH] fix "don't save high scores if failed" --- stepmania/src/ScreenEvaluation.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 88b717b691..620fbd9d03 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -862,7 +862,8 @@ void ScreenEvaluation::CommitScores( const StageStats &stageStats, int iPersonal case stage: { // don't save scores for a failed song - if( m_bFailed ) continue; + if( stageStats.bFailed[p] ) + continue; ASSERT( GAMESTATE->m_pCurNotes[p] ); @@ -877,10 +878,9 @@ void ScreenEvaluation::CommitScores( const StageStats &stageStats, int iPersonal case summary: { - // don't save scores for a failed game - // (I'm not sure if this is a case that can actally - // happen -avh4) - if( m_bFailed ) continue; + // don't save scores if any stage was failed + if( stageStats.bFailed[p] ) + continue; StepsType nt = GAMESTATE->GetCurrentStyleDef()->m_StepsType; @@ -900,10 +900,10 @@ void ScreenEvaluation::CommitScores( const StageStats &stageStats, int iPersonal Course* pCourse = GAMESTATE->m_pCurCourse; if( pCourse ) { - // don't save scores for a failed Nonstop (is this - // correct? -avh4) + // don't save scores for a failed Nonstop // DO save scores for a failed Oni/Endless - if( m_bFailed && pCourse->IsNonstop() ) continue; + if( stageStats.bFailed[p] && pCourse->IsNonstop() ) + continue; StepsType nt = GAMESTATE->GetCurrentStyleDef()->m_StepsType; Course::MemCardData::HighScore hs;