Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:

Deals with the multiple warning side affect introduced earlier.
GenericGridServerConcept
Charles Krinke 2009-02-25 04:29:02 +00:00
parent 72be38f7ae
commit ed7256ac0c
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
/// <returns>String containing the generated C# code.</returns>
public string Convert(string script)
{
m_warnings.Clear();
ResetCounters();
Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true));
// Obviously this needs to be in a try/except block.

View File

@ -261,6 +261,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
public string PerformScriptCompile(string Script, string asset)
{
m_positionMap = null;
m_warnings.Clear();
string OutFile = Path.Combine(ScriptEnginesPath, Path.Combine(
m_scriptEngine.World.RegionInfo.RegionID.ToString(),