update old ScreenGameplayShared code to mostly use PlayerInfo::Load; fixes some stuff but still not right

This commit is contained in:
Glenn Maynard
2010-01-25 07:38:23 +00:00
parent 1d9555a6d2
commit 51576d5942
+2 -7
View File
@@ -19,13 +19,8 @@ void ScreenGameplayShared::FillPlayerInfo( vector<PlayerInfo> &vPlayerInfoOut )
FOREACH_PlayerNumber( pn )
{
PlayerInfo &pi = vPlayerInfoOut[pn];
pi.m_pn = pn;
PlayerState *pPlayerState = pi.GetPlayerState();
PlayerStageStats *pPlayerStageStats = pi.GetPlayerStageStats();
pi.m_pPrimaryScoreDisplay = new ScoreDisplayNormal;
pi.m_pPrimaryScoreDisplay->Init( pPlayerState, pPlayerStageStats );
pi.m_pPrimaryScoreKeeper = new ScoreKeeperShared( pPlayerState, pPlayerStageStats );
pi.Load( pn, MultiPlayer_Invalid, pn == mpn, Difficulty_Invalid );
pi.m_pPlayer = new Player( mpi.m_NoteData, pn == mpn );
}
}