Make this happen for each place it needs to.
This commit is contained in:
@@ -95,6 +95,8 @@ void BeginnerHelper::Initialize( int iDancePadType )
|
|||||||
this->AddChild(&m_sStepCircle[sc]);
|
this->AddChild(&m_sStepCircle[sc]);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
Steps *Blahness;
|
||||||
|
|
||||||
// Load the DancePad
|
// Load the DancePad
|
||||||
m_mDancePad.SetHorizAlign( align_left );
|
m_mDancePad.SetHorizAlign( align_left );
|
||||||
m_mDancePad.SetRotationX( DANCEPAD_ANGLE );
|
m_mDancePad.SetRotationX( DANCEPAD_ANGLE );
|
||||||
@@ -116,6 +118,11 @@ void BeginnerHelper::Initialize( int iDancePadType )
|
|||||||
GAMESTATE->m_pCurCharacters[pl] = GAMESTATE->GetRandomCharacter();
|
GAMESTATE->m_pCurCharacters[pl] = GAMESTATE->GetRandomCharacter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG->Trace( "Blahness" );
|
||||||
|
Blahness = GAMESTATE->m_pCurNotes[pl];
|
||||||
|
LOG->Trace( "Blahness2" );
|
||||||
|
LOG->Trace( "Players: %d, Player: %d",NUM_PLAYERS,pl );
|
||||||
|
LOG->Trace ("Blahness Difficulty: %d",Blahness->GetDifficulty() );
|
||||||
if( GAMESTATE->m_pCurNotes[pl]->GetDifficulty() == DIFFICULTY_BEGINNER && GAMESTATE->m_pCurCharacters[pl] != NULL )
|
if( GAMESTATE->m_pCurNotes[pl]->GetDifficulty() == DIFFICULTY_BEGINNER && GAMESTATE->m_pCurCharacters[pl] != NULL )
|
||||||
{
|
{
|
||||||
// Load textures
|
// Load textures
|
||||||
@@ -185,7 +192,7 @@ void BeginnerHelper::Step( int pn, int CSTEP )
|
|||||||
{
|
{
|
||||||
LOG->Trace( "BeginnerHelper::Step()" );
|
LOG->Trace( "BeginnerHelper::Step()" );
|
||||||
// First make sure this player is on beginner mode and enabled... The difficulty check may be redundant, tho.
|
// First make sure this player is on beginner mode and enabled... The difficulty check may be redundant, tho.
|
||||||
if( (GAMESTATE->IsPlayerEnabled(pn)) && (GAMESTATE->m_PreferredDifficulty[pn] == DIFFICULTY_BEGINNER) )
|
if( (GAMESTATE->IsPlayerEnabled(pn)) && (GAMESTATE->m_pCurNotes[pn]->GetDifficulty() == DIFFICULTY_BEGINNER) )
|
||||||
{
|
{
|
||||||
ShowStepCircle( pn, CSTEP);
|
ShowStepCircle( pn, CSTEP);
|
||||||
m_mDancer[pn].StopTweening();
|
m_mDancer[pn].StopTweening();
|
||||||
@@ -221,7 +228,7 @@ void BeginnerHelper::Update( float fDeltaTime )
|
|||||||
|
|
||||||
for(int pn = 0; pn < NUM_PLAYERS; pn++ )
|
for(int pn = 0; pn < NUM_PLAYERS; pn++ )
|
||||||
{
|
{
|
||||||
if( (!GAMESTATE->IsPlayerEnabled(pn)) || (GAMESTATE->m_PreferredDifficulty[pn] != DIFFICULTY_BEGINNER) )
|
if( (!GAMESTATE->IsPlayerEnabled(pn)) || (GAMESTATE->m_pCurNotes[pn]->GetDifficulty() != DIFFICULTY_BEGINNER) )
|
||||||
continue; // skip
|
continue; // skip
|
||||||
|
|
||||||
int iStep = 0;
|
int iStep = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user