Send mine data to the server.

This commit is contained in:
Josh Allen
2006-07-06 17:53:49 +00:00
parent ca8a477158
commit 6c80e0fa5a
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -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
{
+4
View File
@@ -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 );
}
}