Changed NoteSkinManager to use new error reporting and avoid crashing. Fixed DoChangeTheme to switch to the InitialScreen if the screen doesn't exist in the theme being changed to. Fixed error reporting in MeterDisplay.

This commit is contained in:
Kyzentun
2014-07-15 13:28:06 -06:00
parent 273b76d3c7
commit 0f72d7cc6b
6 changed files with 76 additions and 30 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ void GameState::ApplyGameCommand( const RString &sCommand, PlayerNumber pn )
RString sWhy;
if( !m.IsPlayable(&sWhy) )
{
LuaHelpers::ReportScriptErrorFmt("Can't apply mode \"%s\": %s", sCommand.c_str(), sWhy.c_str());
LuaHelpers::ReportScriptErrorFmt("Can't apply GameCommand \"%s\": %s", sCommand.c_str(), sWhy.c_str());
return;
}