fix couple dance points calculation
This commit is contained in:
@@ -29,7 +29,6 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Steps*>& apNotes_, PlayerNumber p
|
|||||||
//
|
//
|
||||||
// Fill in m_CurStageStats, calculate multiplier
|
// Fill in m_CurStageStats, calculate multiplier
|
||||||
//
|
//
|
||||||
NoteData notedata;
|
|
||||||
switch( GAMESTATE->m_PlayMode )
|
switch( GAMESTATE->m_PlayMode )
|
||||||
{
|
{
|
||||||
case PLAY_MODE_ARCADE:
|
case PLAY_MODE_ARCADE:
|
||||||
@@ -37,12 +36,18 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Steps*>& apNotes_, PlayerNumber p
|
|||||||
case PLAY_MODE_CPU_BATTLE:
|
case PLAY_MODE_CPU_BATTLE:
|
||||||
case PLAY_MODE_RAVE:
|
case PLAY_MODE_RAVE:
|
||||||
{
|
{
|
||||||
|
NoteData notedata;
|
||||||
ASSERT( !apNotes.empty() );
|
ASSERT( !apNotes.empty() );
|
||||||
Steps* pNotes = apNotes[0];
|
Steps* pNotes = apNotes[0];
|
||||||
GAMESTATE->m_CurStageStats.pSong = GAMESTATE->m_pCurSong;
|
GAMESTATE->m_CurStageStats.pSong = GAMESTATE->m_pCurSong;
|
||||||
GAMESTATE->m_CurStageStats.iMeter[pn_] = pNotes->GetMeter();
|
GAMESTATE->m_CurStageStats.iMeter[pn_] = pNotes->GetMeter();
|
||||||
|
|
||||||
pNotes->GetNoteData( ¬edata );
|
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;
|
break;
|
||||||
case PLAY_MODE_NONSTOP:
|
case PLAY_MODE_NONSTOP:
|
||||||
@@ -52,7 +57,14 @@ ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Steps*>& apNotes_, PlayerNumber p
|
|||||||
int iTotalPossibleDancePoints = 0;
|
int iTotalPossibleDancePoints = 0;
|
||||||
for( unsigned i=0; i<apNotes.size(); i++ )
|
for( unsigned i=0; i<apNotes.size(); i++ )
|
||||||
{
|
{
|
||||||
|
NoteData notedata;
|
||||||
apNotes[i]->GetNoteData( ¬edata );
|
apNotes[i]->GetNoteData( ¬edata );
|
||||||
|
|
||||||
|
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
||||||
|
NoteData playerNoteData;
|
||||||
|
pStyleDef->GetTransformedNoteDataForStyle( pn_, ¬edata, &playerNoteData );
|
||||||
|
|
||||||
|
apNotes[i]->GetNoteData( &playerNoteData );
|
||||||
iTotalPossibleDancePoints += this->GetPossibleDancePoints( ¬edata );
|
iTotalPossibleDancePoints += this->GetPossibleDancePoints( ¬edata );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user