Use ScoreKeeperShared.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#include "NoteDataWithScoring.h"
|
#include "NoteDataWithScoring.h"
|
||||||
#include "ActiveAttackList.h"
|
#include "ActiveAttackList.h"
|
||||||
#include "ScoreDisplayNormal.h"
|
#include "ScoreDisplayNormal.h"
|
||||||
#include "ScoreKeeperNormal.h"
|
#include "ScoreKeeperShared.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS( ScreenGameplayShared );
|
REGISTER_SCREEN_CLASS( ScreenGameplayShared );
|
||||||
|
|
||||||
@@ -17,14 +17,12 @@ void ScreenGameplayShared::FillPlayerInfo( vector<PlayerInfo> &vPlayerInfoOut )
|
|||||||
FOREACH_PlayerNumber( pn )
|
FOREACH_PlayerNumber( pn )
|
||||||
{
|
{
|
||||||
PlayerInfo &pi = vPlayerInfoOut[pn];
|
PlayerInfo &pi = vPlayerInfoOut[pn];
|
||||||
pi.m_pn = pn;
|
|
||||||
// Set m_pn first.
|
|
||||||
PlayerState *const pPlayerState = pi.GetPlayerState();
|
|
||||||
PlayerStageStats *const pPlayerStageStats = pi.GetPlayerStageStats();
|
|
||||||
|
|
||||||
|
pi.m_pn = pn;
|
||||||
pi.m_pPrimaryScoreDisplay = new ScoreDisplayNormal;
|
pi.m_pPrimaryScoreDisplay = new ScoreDisplayNormal;
|
||||||
pi.m_pPrimaryScoreDisplay->Init( pPlayerState, pPlayerStageStats );
|
pi.m_pPrimaryScoreDisplay->Init( pi.GetPlayerState(), GetPlayerStageStats() );
|
||||||
pi.m_pPrimaryScoreKeeper = new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
|
if( pn == mpn )
|
||||||
|
pi.m_pPrimaryScoreKeeper = new ScoreKeeperShared;
|
||||||
pi.m_pPlayer = new Player( pn == mpn, pn == mpn );
|
pi.m_pPlayer = new Player( pn == mpn, pn == mpn );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user