From 8438dffa0d0a7ba48043ce733c9ac9f3666144ff Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 6 Sep 2004 00:58:34 +0000 Subject: [PATCH] it's no longer possible to select a nonexistant theme, unless "default" itself doesn't exist, because ModeChoice only considers a string to be a note skin if a note skin by that name exists --- stepmania/src/StepMania.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index ecfdfee4b0..1a1c024a2e 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -190,20 +190,7 @@ void ResetGame( bool ReturnToFirstScreen ) INPUTMAPPER->ReadMappingsFromDisk(); NOTESKIN->RefreshNoteSkinData( GAMESTATE->m_pCurGame ); - - /* - GameState::Reset() will switch the NoteSkin - FOREACH_PlayerNumber( p ) - { - PlayerNumber pn = (PlayerNumber)p; - if( !NOTESKIN->DoesNoteSkinExist( NOTESKIN->GetCurNoteSkinName(pn) ) ) - { - CStringArray asNoteSkinNames; - NOTESKIN->GetNoteSkinNames( asNoteSkinNames ); - NOTESKIN->SwitchNoteSkin( pn, asNoteSkinNames[0] ); - } - } - */ + if( !THEME->DoesThemeExist( THEME->GetCurThemeName() ) ) { CString sGameName = GAMESTATE->GetCurrentGame()->m_szName;