From 2a0df340878db658beddd9f18083c7cdcdcf6500 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 31 Aug 2016 14:36:07 +0100 Subject: [PATCH] Xengine: and fix line count again --- .../ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 12 ++++-------- .../Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) 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(