From a8792e08db2f2d1d6eac095a1768abe89f597342 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 25 May 2006 18:46:40 +0000 Subject: [PATCH] don't make unlocks for songs with no challenge steps --- stepmania/src/UnlockManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/UnlockManager.cpp b/stepmania/src/UnlockManager.cpp index e5aa099a94..6e32a4c938 100644 --- a/stepmania/src/UnlockManager.cpp +++ b/stepmania/src/UnlockManager.cpp @@ -453,8 +453,14 @@ void UnlockManager::Load() { FOREACH_CONST( Song*, SONGMAN->GetAllSongs(), s ) { + // If no hard steps to play to unlock, skip if( (*s)->GetOneSteps(STEPS_TYPE_INVALID, DIFFICULTY_HARD) == NULL ) continue; + + // If no challenge steps to unlock, skip + if( (*s)->GetOneSteps(STEPS_TYPE_INVALID, DIFFICULTY_CHALLENGE) == NULL ) + continue; + if( SONGMAN->WasLoadedFromAdditionalSongs(*s) ) continue;