Let Mac OS X have goodies.
This commit is contained in:
@@ -697,17 +697,7 @@ int Course::GetMeter( StepsType st, CourseDifficulty cd ) const
|
||||
|
||||
bool Course::HasMods() const
|
||||
{
|
||||
#ifdef MACOSX
|
||||
for (CourseEntry const &e : m_vEntries)
|
||||
{
|
||||
if( !e.attacks.empty() )
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
#else
|
||||
return std::any_of(m_vEntries.begin(), m_vEntries.end(), [](CourseEntry const &e) { return !e.attacks.empty(); });
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Course::HasTimedMods() const
|
||||
@@ -722,34 +712,17 @@ bool Course::HasTimedMods() const
|
||||
{
|
||||
continue;
|
||||
}
|
||||
#ifdef MACOSX
|
||||
for (Attack const &attack : e.attacks)
|
||||
{
|
||||
if(!attack.bGlobal)
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
if (std::any_of(e.attacks.begin(), e.attacks.end(), [](Attack const &a) { return !a.bGlobal; }))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Course::AllSongsAreFixed() const
|
||||
{
|
||||
#ifdef MACOSX
|
||||
for (CourseEntry const &e : m_vEntries)
|
||||
{
|
||||
if( !e.IsFixedSong() )
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
#else
|
||||
return std::all_of(m_vEntries.begin(), m_vEntries.end(), [](CourseEntry const &e) { return e.IsFixedSong(); });
|
||||
#endif
|
||||
}
|
||||
|
||||
const Style *Course::GetCourseStyle( const Game *pGame, int iNumPlayers ) const
|
||||
|
||||
Reference in New Issue
Block a user