Fixed SwitchThemeAndLanguage to run lua scripts when reloading the theme. Removed ForceThemeReload param from GameLoop::ChangeTheme.

This commit is contained in:
Kyzentun
2014-08-24 03:21:01 -06:00
parent 1ca6154c1a
commit 01442d193f
4 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -127,8 +127,7 @@ void ScreenOptionsMaster::HandleScreenMessage( const ScreenMessage SM )
/* If the resolution or aspect ratio changes, always reload the theme.
* Otherwise, only reload it if it changed. */
RString sNewTheme = PREFSMAN->m_sTheme.Get();
bool bForceThemeReload = !!(m_iChangeMask & OPT_APPLY_ASPECT_RATIO) || !!(m_iChangeMask & OPT_APPLY_GRAPHICS);
GameLoop::ChangeTheme( sNewTheme, bForceThemeReload );
GameLoop::ChangeTheme(sNewTheme);
}
if( m_iChangeMask & OPT_SAVE_PREFERENCES )