Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError.

This commit is contained in:
Kyzentun
2014-07-07 00:39:27 -06:00
parent ff1392cdba
commit 026f968fa4
31 changed files with 119 additions and 118 deletions
+1 -3
View File
@@ -14,7 +14,6 @@
#include "Game.h"
#include "Style.h"
#include "Foreach.h"
#include "arch/Dialog/Dialog.h"
#include "GameSoundManager.h"
#include "PlayerState.h"
#include "SongManager.h"
@@ -426,8 +425,7 @@ void GameCommand::LoadOne( const Command& cmd )
else
{
RString sWarning = ssprintf( "Command '%s' is not valid.", cmd.GetOriginalCommandString().c_str() );
LOG->Warn( "%s", sWarning.c_str() );
Dialog::OK( sWarning, "INVALID_GAME_COMMAND" );
LuaHelpers::ReportScriptError(sWarning, "INVALID_GAME_COMMAND");
}
}