Skip to content

Commit

Permalink
kill more dead non event mode stage code
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 10, 2017
1 parent ef24d4a commit 4d06e74
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,34 +180,6 @@ void MusicWheel::BeginScreen()

// rebuild the WheelItems that appear on screen
RebuildWheelItems();

/* Invalidate current Song if it can't be played
* because there are not enough stages remaining. */
if(GAMESTATE->m_pCurSong != NULL &&
GameState::GetNumStagesMultiplierForSong(GAMESTATE->m_pCurSong) >
GAMESTATE->GetSmallestNumStagesLeftForAnyHumanPlayer())
{
GAMESTATE->m_pCurSong.Set(NULL);
}

/* Invalidate current Steps if it can't be played
* because there are not enough stages remaining. */
FOREACH_ENUM(PlayerNumber, p)
{
if(GAMESTATE->m_pCurSteps[p] != NULL)
{
vector<Steps*> vpPossibleSteps;
if(GAMESTATE->m_pCurSong != NULL)
{
SongUtil::GetPlayableSteps(GAMESTATE->m_pCurSong, vpPossibleSteps);
}
bool bStepsIsPossible = find(vpPossibleSteps.begin(), vpPossibleSteps.end(), GAMESTATE->m_pCurSteps[p]) == vpPossibleSteps.end();
if(!bStepsIsPossible)
{
GAMESTATE->m_pCurSteps[p].Set(NULL);
}
}
}
}

MusicWheel::~MusicWheel()
Expand Down

0 comments on commit 4d06e74

Please sign in to comment.