don't show endless courses in ranking

This commit is contained in:
Chris Danford
2005-03-27 10:31:27 +00:00
parent 05c5297f4b
commit c1e4a0baee
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -1246,6 +1246,14 @@ void Course::GetAllCachedTrails( vector<Trail *> &out )
}
}
bool Course::ShowInDemonstrationAndRanking() const
{
// Don't show endless courses in Ranking.
if( IsEndless() )
return false;
return true;
}
// lua start
#include "LuaBinding.h"