pass around a PlayerState and PlayerStageStats instead of PlayerNumber and looking things up in GameState
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include "RageLog.h"
|
||||
#include "PrefsManager.h"
|
||||
#include "RageLog.h"
|
||||
#include "GameState.h"
|
||||
#include "ThemeManager.h"
|
||||
#include "ActorUtil.h"
|
||||
#include "PlayerState.h"
|
||||
@@ -34,9 +33,9 @@ ScoreDisplayRave::ScoreDisplayRave()
|
||||
this->AddChild( &m_textLevel );
|
||||
}
|
||||
|
||||
void ScoreDisplayRave::Init( const PlayerState* pPlayerState )
|
||||
void ScoreDisplayRave::Init( const PlayerState* pPlayerState, const PlayerStageStats* pPlayerStageStats )
|
||||
{
|
||||
ScoreDisplay::Init( pPlayerState );
|
||||
ScoreDisplay::Init( pPlayerState, pPlayerStageStats );
|
||||
|
||||
PlayerNumber pn = pPlayerState->m_PlayerNumber;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user