separate Load() call to give queues to ScoreKeepers (do expensive init in ctor)

This commit is contained in:
Glenn Maynard
2005-03-18 07:36:59 +00:00
parent a51cbb1fe5
commit 507493e928
4 changed files with 35 additions and 15 deletions
+8 -3
View File
@@ -199,9 +199,6 @@ void ScreenGameplay::Init()
case PrefsManager::SCORING_MAX2:
case PrefsManager::SCORING_5TH:
m_pPrimaryScoreKeeper[p] = new ScoreKeeperMAX2(
m_apSongsQueue,
m_vpStepsQueue[p],
m_asModifiersQueue[p],
GAMESTATE->m_pPlayerState[p],
&STATSMAN->m_CurStageStats.m_player[p] );
break;
@@ -218,6 +215,14 @@ void ScreenGameplay::Init()
}
}
FOREACH_EnabledPlayer(pn)
{
if( m_pPrimaryScoreKeeper[pn] )
m_pPrimaryScoreKeeper[pn]->Load( m_apSongsQueue, m_vpStepsQueue[pn], m_asModifiersQueue[pn] );
if( m_pSecondaryScoreKeeper[pn] )
m_pSecondaryScoreKeeper[pn]->Load( m_apSongsQueue, m_vpStepsQueue[pn], m_asModifiersQueue[pn] );
}
m_bChangedOffsetOrBPM = GAMESTATE->m_SongOptions.m_bAutoSync;
m_DancingState = STATE_INTRO;