diff --git a/stepmania/src/BeginnerHelper.cpp b/stepmania/src/BeginnerHelper.cpp index 8eae4ee82b..db8fcd4cb0 100644 --- a/stepmania/src/BeginnerHelper.cpp +++ b/stepmania/src/BeginnerHelper.cpp @@ -95,8 +95,6 @@ void BeginnerHelper::Initialize( int iDancePadType ) this->AddChild(&m_sStepCircle[sc]); }*/ - Steps *Blahness; - // Load the DancePad m_mDancePad.SetHorizAlign( align_left ); m_mDancePad.SetRotationX( DANCEPAD_ANGLE ); @@ -112,17 +110,15 @@ void BeginnerHelper::Initialize( int iDancePadType ) for( int pl=0; plIsPlayerEnabled(pl)) + continue; + // if there is no character set, try loading a random one. if( GAMESTATE->m_pCurCharacters[pl] == NULL ) { 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 ) { // Load textures @@ -224,11 +220,9 @@ void BeginnerHelper::Update( float fDeltaTime ) if(!m_bInitialized) return; - float beat = fDeltaTime * GAMESTATE->m_fCurBPS; - for(int pn = 0; pn < NUM_PLAYERS; pn++ ) { - if( (!GAMESTATE->IsPlayerEnabled(pn)) || (GAMESTATE->m_pCurNotes[pn]->GetDifficulty() != DIFFICULTY_BEGINNER) ) + if( !( GAMESTATE->IsPlayerEnabled(pn) && GAMESTATE->m_pCurNotes[pn]->GetDifficulty() == DIFFICULTY_BEGINNER) ) continue; // skip int iStep = 0; @@ -253,11 +247,17 @@ void BeginnerHelper::Update( float fDeltaTime ) ActorFrame::Update( fDeltaTime ); m_mDancePad.Update( fDeltaTime ); - m_sFlash.Update( fDeltaTime ); - for( int scu=0; scum_fCurBPS; for( int pu=0; puIsPlayerEnabled(pu)) + continue; + m_mDancer[pu].Update( beat ); //Update dancers + for( int scu=0; scu<2; scu++ ) + m_sStepCircle[pu+scu].Update( beat ); + } } diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index c90c399277..1bb3c12637 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -784,7 +784,7 @@ void ScreenGameplay::LoadNextSong() bool anybeginners = false; for( int pb=0; pbIsPlayerEnabled(pb) && GAMESTATE->m_PreferredDifficulty[pb] == DIFFICULTY_BEGINNER ) + if( GAMESTATE->IsPlayerEnabled(pb) && GAMESTATE->m_pCurNotes[pb]->GetDifficulty() == DIFFICULTY_BEGINNER ) { anybeginners = true; m_BeginnerHelper.AddPlayer( pb, &m_Player[pb] );