From 289e52857621f7913c4fbaf3a455555035106908 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 Jul 2003 22:50:27 +0000 Subject: [PATCH] Don't show unlock count if it's off. --- stepmania/src/ScreenTitleMenu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenTitleMenu.cpp b/stepmania/src/ScreenTitleMenu.cpp index 37cc3ee834..253c39daaf 100644 --- a/stepmania/src/ScreenTitleMenu.cpp +++ b/stepmania/src/ScreenTitleMenu.cpp @@ -85,7 +85,10 @@ ScreenTitleMenu::ScreenTitleMenu() : Screen("ScreenTitleMenu") m_textSongs.LoadFromFont( THEME->GetPathToF("Common normal") ); m_textSongs.Command( SONGS_ON_COMMAND ); - m_textSongs.SetText( ssprintf("%d songs in %d groups, %d courses, %d unlocks", SONGMAN->GetNumSongs(), SONGMAN->GetNumGroups(), SONGMAN->GetNumCourses(), GAMESTATE->m_pUnlockingSys->GetNumUnlocks() )); + CString text = ssprintf("%d songs in %d groups, %d courses", SONGMAN->GetNumSongs(), SONGMAN->GetNumGroups(), SONGMAN->GetNumCourses() ); + if( PREFSMAN->m_bUseUnlockSystem ) + text += ssprintf(", %d unlocks", GAMESTATE->m_pUnlockingSys->GetNumUnlocks() ); + m_textSongs.SetText( text ); this->AddChild( &m_textSongs );