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

This commit is contained in:
Kyzentun
2014-08-02 00:38:18 -07:00
committed by Jonathan Payne
parent a6c54ebd90
commit a74a49af78
31 changed files with 119 additions and 118 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ public:
int iCol = IArg(2) - 1;
if( iCol < 0 || iCol >= p->m_iColsPerPlayer )
{
LOG->Warn( "Style:GetColumnDrawOrder(): column %i out of range( 1 to %i )", iCol+1, p->m_iColsPerPlayer );
LuaHelpers::ReportScriptErrorFmt( "Style:GetColumnDrawOrder(): column %i out of range( 1 to %i )", iCol+1, p->m_iColsPerPlayer );
return 0;
}
@@ -153,7 +153,7 @@ public:
int iCol = IArg(1) - 1;
if( iCol < 0 || iCol >= p->m_iColsPerPlayer*NUM_PLAYERS )
{
LOG->Warn( "Style:GetColumnDrawOrder(): column %i out of range( 1 to %i )", iCol+1, p->m_iColsPerPlayer*NUM_PLAYERS );
LuaHelpers::ReportScriptErrorFmt( "Style:GetColumnDrawOrder(): column %i out of range( 1 to %i )", iCol+1, p->m_iColsPerPlayer*NUM_PLAYERS );
return 0;
}
lua_pushnumber( L, p->m_iColumnDrawOrder[iCol]+1 );