Let Mac OS X have goodies.

This commit is contained in:
Jason Felds
2013-04-29 23:37:10 -04:00
parent 71d993ee39
commit c07d4cf78f
11 changed files with 4 additions and 117 deletions
-27
View File
@@ -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