Skip to content

Commit

Permalink
Fix combo logic when chord cohesion is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwidghet committed Mar 15, 2017
1 parent 7de6738 commit 0b45e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ScoreKeeperNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,11 @@ void ScoreKeeperNormal::HandleTapRowScore( const NoteData &nd, int iRow )

if ( GAMESTATE->CountNotesSeparately() )
{
HandleComboInternal( iNumHitContinueCombo, iNumHitMaintainCombo, iNumBreakCombo, iRow );
// HandleTapRowScore gets called on every judgment,
// so we only want increment up by one each time.
int numHitInRow = min( iNumHitContinueCombo, 1 );
int numMissInRow = min( iNumBreakCombo, 1 );
HandleComboInternal(numHitInRow, iNumHitMaintainCombo, numMissInRow, iRow );
}
else
{
Expand Down

0 comments on commit 0b45e1f

Please sign in to comment.