diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index b80de62906..7400180771 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1343,7 +1343,7 @@ void Player::DoTapScoreNone() if( PENALIZE_TAP_SCORE_NONE ) { - SetJudgment( TNS_Miss, false ); + SetJudgment( TNS_Miss, 0 ); // the ScoreKeeper will subrtract points later. } } @@ -2081,12 +2081,12 @@ void Player::UpdateJudgedRows() const TapNote &tn = m_NoteData.GetTapNote( iTrack, iRow ); if( tn.type == TapNote::empty || tn.type == TapNote::mine ) continue; if( tn.pn != PLAYER_INVALID && tn.pn != pn ) continue; - SetJudgment( tn.result.tns, tn.result.fTapNoteOffset < 0.0f ); + SetJudgment( tn.result.tns, tn.result.fTapNoteOffset ); } } else { - SetJudgment( lastTNR.tns, lastTNR.fTapNoteOffset < 0.0f ); + SetJudgment( lastTNR.tns, lastTNR.fTapNoteOffset ); } HandleTapRowScore( iRow ); } @@ -2432,13 +2432,14 @@ bool Player::IsPlayingBeginner() const return pSteps && pSteps->GetDifficulty() == Difficulty_Beginner; } -void Player::SetJudgment( TapNoteScore tns, bool bEarly ) +void Player::SetJudgment( TapNoteScore tns, float fTapNoteOffset ) { Message msg("Judgment"); msg.SetParam( "Player", m_pPlayerState->m_PlayerNumber ); msg.SetParam( "MultiPlayer", m_pPlayerState->m_mp ); msg.SetParam( "TapNoteScore", tns ); - msg.SetParam( "Early", bEarly ); + msg.SetParam( "Early", fTapNoteOffset < 0.0f ); + msg.SetParam( "TapNoteOffset", fTapNoteOffset ); MESSAGEMAN->Broadcast( msg ); } diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index 9b76f62c7c..917e4acb54 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -117,7 +117,7 @@ protected: void DrawHoldJudgments(); void SendComboMessages( int iOldCombo, int iOldMissCombo ); - void SetJudgment( TapNoteScore tns, bool bEarly ); + void SetJudgment( TapNoteScore tns, float fTapNoteOffset ); void SetHoldJudgment( TapNoteScore tns, HoldNoteScore hns, int iTrack ); void SetCombo( int iCombo, int iMisses );