diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index be1aae090c..bc6ce4ff80 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs @@ -169,18 +169,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools // standard preamble - //retstr = GenerateLine("using OpenSim.Region.ScriptEngine.Common;"); - //retstr += GenerateLine("using System.Collections.Generic;"); - //retstr += GenerateLine(""); - //retstr += GenerateLine("namespace SecondLife"); - //retstr += GenerateLine("{"); + + + m_braceCount++; - //retstr += GenerateIndentedLine("public class Script : OpenSim.Region.ScriptEngine.Common"); - //retstr += GenerateIndentedLine("{"); m_braceCount++; // line number - m_CSharpLine += 9; + m_CSharpLine += 10; // here's the payload sb.Append("\n"); diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 67762a3c9e..f632cb0ded 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs @@ -456,7 +456,7 @@ namespace SecondLife public static void AddCSScriptTail(StringBuilder sb) { - sb.Append(string.Format("\n }}\n}}\n")); + sb.Append(string.Format(" }}\n}}\n")); } public static string CreateCSCompilerScript(