From 22c6d2ca4cfe1e834baf0f359851c1498f43cf5d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 4 Aug 2003 00:05:42 +0000 Subject: [PATCH] fix couple dance points calculation --- stepmania/src/ScoreKeeperMAX2.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScoreKeeperMAX2.cpp b/stepmania/src/ScoreKeeperMAX2.cpp index 8cf396d53b..f456c64885 100644 --- a/stepmania/src/ScoreKeeperMAX2.cpp +++ b/stepmania/src/ScoreKeeperMAX2.cpp @@ -29,7 +29,6 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector& apNotes_, PlayerNumber p // // Fill in m_CurStageStats, calculate multiplier // - NoteData notedata; switch( GAMESTATE->m_PlayMode ) { case PLAY_MODE_ARCADE: @@ -37,12 +36,18 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector& apNotes_, PlayerNumber p case PLAY_MODE_CPU_BATTLE: case PLAY_MODE_RAVE: { + NoteData notedata; ASSERT( !apNotes.empty() ); Steps* pNotes = apNotes[0]; GAMESTATE->m_CurStageStats.pSong = GAMESTATE->m_pCurSong; GAMESTATE->m_CurStageStats.iMeter[pn_] = pNotes->GetMeter(); + pNotes->GetNoteData( ¬edata ); - GAMESTATE->m_CurStageStats.iPossibleDancePoints[pn_] = this->GetPossibleDancePoints( ¬edata ); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + NoteData playerNoteData; + pStyleDef->GetTransformedNoteDataForStyle( pn_, ¬edata, &playerNoteData ); + + GAMESTATE->m_CurStageStats.iPossibleDancePoints[pn_] = this->GetPossibleDancePoints( &playerNoteData ); } break; case PLAY_MODE_NONSTOP: @@ -52,7 +57,14 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector& apNotes_, PlayerNumber p int iTotalPossibleDancePoints = 0; for( unsigned i=0; iGetNoteData( ¬edata ); + + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + NoteData playerNoteData; + pStyleDef->GetTransformedNoteDataForStyle( pn_, ¬edata, &playerNoteData ); + + apNotes[i]->GetNoteData( &playerNoteData ); iTotalPossibleDancePoints += this->GetPossibleDancePoints( ¬edata ); }