allow display of negative dance points

stop counting dance points after fail
This commit is contained in:
Chris Danford
2004-01-12 06:45:36 +00:00
parent 5f10d10abb
commit 96a7cb0bcd
3 changed files with 23 additions and 3 deletions
+12
View File
@@ -209,6 +209,9 @@ static int GetScore(int p, int B, int S, int n)
void ScoreKeeperMAX2::AddScore( TapNoteScore score )
{
if( g_CurStageStats.bFailed[m_PlayerNumber] )
return; // don't add
int &iScore = g_CurStageStats.iScore[m_PlayerNumber];
/*
http://www.aaroninjapan.com/ddr2.html
@@ -318,6 +321,9 @@ void ScoreKeeperMAX2::AddScore( TapNoteScore score )
void ScoreKeeperMAX2::HandleTapScore( TapNoteScore score )
{
if( g_CurStageStats.bFailed[m_PlayerNumber] )
return; // don't add
if( score == TNS_HIT_MINE )
{
g_CurStageStats.iActualDancePoints[m_PlayerNumber] += TapNoteScoreToDancePoints( TNS_HIT_MINE );
@@ -327,6 +333,9 @@ void ScoreKeeperMAX2::HandleTapScore( TapNoteScore score )
void ScoreKeeperMAX2::HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTapsInRow )
{
if( g_CurStageStats.bFailed[m_PlayerNumber] )
return; // don't add
ASSERT( iNumTapsInRow >= 1 );
// Update dance points.
@@ -402,6 +411,9 @@ void ScoreKeeperMAX2::HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTa
void ScoreKeeperMAX2::HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tapScore )
{
if( g_CurStageStats.bFailed[m_PlayerNumber] )
return; // don't add
// update dance points totals
g_CurStageStats.iHoldNoteScores[m_PlayerNumber][holdScore] ++;
g_CurStageStats.iActualDancePoints[m_PlayerNumber] += HoldNoteScoreToDancePoints( holdScore );