From 8fe4efe6f4801194df8b668e6baf84215c60edc8 Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Mon, 13 Sep 2010 21:36:32 -0500 Subject: [PATCH] Attempt to fix issues with full combos occuring when checkpoints have been missed. --- src/PlayerStageStats.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/PlayerStageStats.cpp b/src/PlayerStageStats.cpp index c11394f999..58cfe3a273 100644 --- a/src/PlayerStageStats.cpp +++ b/src/PlayerStageStats.cpp @@ -260,6 +260,7 @@ float PlayerStageStats::GetPercentDancePoints() const float PlayerStageStats::GetCurMaxPercentDancePoints() const { if ( m_iPossibleDancePoints == 0 ) + return 0; // div/0 if ( m_iCurPossibleDancePoints == m_iPossibleDancePoints ) @@ -513,13 +514,17 @@ bool PlayerStageStats::FullComboOfScore( TapNoteScore tnsAllGreaterOrEqual ) con if( m_iHoldNoteScores[HNS_LetGo] > 0 ) return false; + //if any checkpoints were missed, it's not a full combo either + if( m_iTapNoteScores[TNS_CheckpointMiss] > 0 ) + return false; + // If has any of the judgments below, then not a full combo for( int i=TNS_Miss; i 0 ) return false; } - + // If has at least one of the judgments equal to or above, then is a full combo. for( int i=tnsAllGreaterOrEqual; i