From c1e4a0baeebbcd0f405874e2487bf55de02c3c1c Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 27 Mar 2005 10:31:27 +0000 Subject: [PATCH] don't show endless courses in ranking --- stepmania/src/Course.cpp | 8 ++++++++ stepmania/src/Course.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index c9c86ef4a8..d46b9d23f7 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -1246,6 +1246,14 @@ void Course::GetAllCachedTrails( vector &out ) } } +bool Course::ShowInDemonstrationAndRanking() const +{ + // Don't show endless courses in Ranking. + if( IsEndless() ) + return false; + return true; +} + // lua start #include "LuaBinding.h" diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 76f231a779..5f44a0c9b8 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -129,7 +129,7 @@ public: bool IsFixed() const; - bool ShowInDemonstrationAndRanking() const { return true; } + bool ShowInDemonstrationAndRanking() const; void LoadFromCRSFile( CString sPath ); void RevertFromDisk();