Per-game theme preference now remembered if value is "default"

This commit is contained in:
Chris Danford
2002-09-29 17:38:07 +00:00
parent ad6c239858
commit 5a43236895
9 changed files with 26 additions and 31 deletions
+1 -3
View File
@@ -86,9 +86,7 @@ bool ThemeManager::DoesThemeExist( CString sThemeName )
void ThemeManager::SwitchTheme( CString sThemeName )
{
if( 0==stricmp(BASE_THEME_NAME, sThemeName) )
m_sCurThemeName = ""; // can't select the base theme
else if( !DoesThemeExist(sThemeName) )
if( !DoesThemeExist(sThemeName) )
m_sCurThemeName = BASE_THEME_NAME;
else
m_sCurThemeName = sThemeName;