handle Player var the same way for judgment and combo

remove unused message
This commit is contained in:
Glenn Maynard
2007-03-02 20:35:59 +00:00
parent 5bcc46afc2
commit 13063bdb98
2 changed files with 3 additions and 7 deletions
-3
View File
@@ -11,8 +11,6 @@ Combo::Combo()
m_iLastSeenCombo = -1;
m_pPlayerState = NULL;
m_pPlayerStageStats = NULL;
this->SubscribeToMessage( Message_BeatCrossed );
}
void Combo::Load( const RString &sPath, const PlayerState *pPlayerState, const PlayerStageStats *pPlayerStageStats )
@@ -22,7 +20,6 @@ void Combo::Load( const RString &sPath, const PlayerState *pPlayerState, const P
m_pPlayerState = pPlayerState;
m_pPlayerStageStats = pPlayerStageStats;
LuaThreadVariable var( "Player", LuaReference::Create(m_pPlayerState->m_PlayerNumber) );
m_sprComboLabel.Load( sPath );
this->AddChild( m_sprComboLabel );
}
+3 -4
View File
@@ -327,15 +327,14 @@ void Player::Init(
m_soundAttackEnding.SetProperty( "Pan", fBalance );
{
LuaThreadVariable var( "Player", LuaReference::Create(m_pPlayerState->m_PlayerNumber) );
LuaThreadVariable var2( "MultiPlayer", LuaReference::Create(m_pPlayerState->m_mp) );
m_Combo.SetName( "Combo" );
m_Combo.Load( THEME->GetPathG(sType,"combo"), m_pPlayerState, m_pPlayerStageStats );
ActorUtil::LoadAllCommandsAndOnCommand( m_Combo, sType );
this->AddChild( &m_Combo );
}
{
LuaThreadVariable var( "Player", LuaReference::Create(m_pPlayerState->m_PlayerNumber) );
LuaThreadVariable var2( "MultiPlayer", LuaReference::Create(m_pPlayerState->m_mp) );
m_pJudgment.Load( THEME->GetPathG(sType,"judgment") );
m_pJudgment->SetName( "Judgment" );
ActorUtil::LoadAllCommandsAndOnCommand( m_pJudgment, sType );