Skip to content

Commit

Permalink
Merge branch '5_1-new' of https://github.com/stepmania/stepmania into…
Browse files Browse the repository at this point in the history
… 5_1-new
  • Loading branch information
ListenerJubatus committed Jan 25, 2018
2 parents 7ccd0a2 + c526fa6 commit 0d4db42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,21 @@ void ScreenSelectMusic::AfterMusicChange()
if(pStyle == NULL)
{
lCourse->GetAllTrails(m_vpTrails);
vector<Trail*>::iterator tra= m_vpTrails.begin();
Game const* cur_game= GAMESTATE->GetCurrentGame();
int num_players= GAMESTATE->GetNumPlayersEnabled();
while(tra != m_vpTrails.end())
{
if(GAMEMAN->GetFirstCompatibleStyle(cur_game, num_players,
(*tra)->m_StepsType) == NULL)
{
tra= m_vpTrails.erase(tra);
}
else
{
++tra;
}
}
}
else
{
Expand Down

0 comments on commit 0d4db42

Please sign in to comment.