From 6c80e0fa5ac2227e581d3f1ad96b83efe8b82bab Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Thu, 6 Jul 2006 17:53:49 +0000 Subject: [PATCH] Send mine data to the server. --- stepmania/src/Player.cpp | 6 ++++++ stepmania/src/ScoreKeeperNormal.cpp | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index df28b77225..b7056651dd 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1459,6 +1459,12 @@ void Player::UpdateTapNotesMissedOlderThan( float fMissIfOlderThanSeconds ) if( tn.type == TapNote::mine ) { tn.result.tns = TNS_AvoidMine; + + //Let the server know we avoided a mine + //Hit mines are sent to the server in HandleTapScore + NSMAN->ReportScore( m_pPlayerState->m_PlayerNumber, tn.result.tns, + m_pPlayerStageStats->iScore, + m_pPlayerStageStats->iCurCombo ); } else { diff --git a/stepmania/src/ScoreKeeperNormal.cpp b/stepmania/src/ScoreKeeperNormal.cpp index 7799124823..686240c91b 100644 --- a/stepmania/src/ScoreKeeperNormal.cpp +++ b/stepmania/src/ScoreKeeperNormal.cpp @@ -339,6 +339,10 @@ void ScoreKeeperNormal::HandleTapScore( TapNoteScore score ) if( !m_pPlayerStageStats->bFailed ) m_pPlayerStageStats->iActualDancePoints += TapNoteScoreToDancePoints( TNS_HitMine ); m_pPlayerStageStats->iTapNoteScores[TNS_HitMine] += 1; + + NSMAN->ReportScore( m_pPlayerState->m_PlayerNumber, score, + m_pPlayerStageStats->iScore, + m_pPlayerStageStats->iCurCombo ); } }