From 365b370aaee08023332fa3771421525f3d30eb31 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 13 Jul 2006 07:33:10 +0000 Subject: [PATCH] Load the players ourself. Only show judgment for the master player. --- stepmania/src/ScreenGameplayShared.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplayShared.cpp b/stepmania/src/ScreenGameplayShared.cpp index 5dc11d5e9e..29ef2e7c25 100644 --- a/stepmania/src/ScreenGameplayShared.cpp +++ b/stepmania/src/ScreenGameplayShared.cpp @@ -5,6 +5,8 @@ #include "NoteDataUtil.h" #include "NoteDataWithScoring.h" #include "ActiveAttackList.h" +#include "ScoreDisplayNormal.h" +#include "ScoreKeeperNormal.h" REGISTER_SCREEN_CLASS( ScreenGameplayShared ); @@ -13,7 +15,18 @@ void ScreenGameplayShared::FillPlayerInfo( vector &vPlayerInfoOut ) PlayerNumber mpn = GAMESTATE->m_MasterPlayerNumber; vPlayerInfoOut.resize( NUM_PLAYERS ); FOREACH_PlayerNumber( pn ) - vPlayerInfoOut[pn].Load( pn, MultiPlayer_INVALID, pn == mpn ); + { + PlayerInfo &pi = vPlayerInfoOut[pn]; + pi.m_pn = pn; + // Set m_pn first. + PlayerState *const pPlayerState = pi.GetPlayerState(); + PlayerStageStats *const pPlayerStageStats = pi.GetPlayerStageStats(); + + pi.m_pPrimaryScoreDisplay = new ScoreDisplayNormal; + pi.m_pPrimaryScoreDisplay->Init( pPlayerState, pPlayerStageStats ); + pi.m_pPrimaryScoreKeeper = new ScoreKeeperNormal( pPlayerState, pPlayerStageStats ); + pi.m_pPlayer = new Player( pn == mpn, pn == mpn ); + } } PlayerInfo &ScreenGameplayShared::GetPlayerInfoForInput( const InputEventPlus& iep )