Skip to content

Commit

Permalink
Fix toasty note count and network sync when chord cohesion is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwidghet committed Mar 19, 2017
1 parent 98302d3 commit 64a7df1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ScoreKeeperNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,6 @@ void ScoreKeeperNormal::HandleTapRowScore( const NoteData &nd, int iRow )
if( iNumTapsInRow <= 0 )
return;

m_iNumNotesHitThisRow = iNumTapsInRow;

TapNoteScore scoreOfLastTap = NoteDataWithScoring::LastTapNoteWithResult( nd, iRow ).result.tns;
HandleTapNoteScoreInternal( nd, scoreOfLastTap, TNS_W1, iRow );

Expand All @@ -575,13 +573,16 @@ void ScoreKeeperNormal::HandleTapRowScore( const NoteData &nd, int iRow )
// so we only want increment up by one each time.
int numHitInRow = min( iNumHitContinueCombo, 1 );
int numMissInRow = min( iNumBreakCombo, 1 );
iNumTapsInRow = min( iNumTapsInRow, 1 );
HandleComboInternal(numHitInRow, iNumHitMaintainCombo, numMissInRow, iRow );
}
else
{
HandleRowComboInternal( scoreOfLastTap, iNumTapsInRow, iRow ); //This should work?
}

m_iNumNotesHitThisRow = iNumTapsInRow;

if( m_pPlayerState->m_PlayerNumber != PLAYER_INVALID )
MESSAGEMAN->Broadcast( enum_add2(Message_CurrentComboChangedP1,m_pPlayerState->m_PlayerNumber) );

Expand Down

0 comments on commit 64a7df1

Please sign in to comment.