add GetAllTrails

This commit is contained in:
Chris Danford
2005-03-22 10:33:47 +00:00
parent e80357cfc1
commit 98aeb3d50f
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -1028,6 +1028,16 @@ void Course::GetTrails( vector<Trail*> &AddTo, StepsType st ) const
}
}
void Course::GetAllTrails( vector<Trail*> &AddTo ) const
{
vector<StepsType> vStepsTypesToShow;
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vStepsTypesToShow );
FOREACH( StepsType, vStepsTypesToShow, st )
{
GetTrails( AddTo, *st );
}
}
bool Course::HasMods() const
{
FOREACH_CONST( CourseEntry, m_entries, e )