From b8a39a4dde7d70bd641cd78b4840e4bc39a79b51 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 22 Sep 2008 11:18:49 +0000 Subject: [PATCH] Remove the script engine identifier tag, so the compiler just sees the language specifier. Makes language specifiers work again with script engine specifiers. --- .../Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs | 1 + OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 04fe4cdff3..c72be7cd0f 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs @@ -204,6 +204,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1) { engine = firstline.Substring(2, colon-2); + script = "//" + script.Substring(script.IndexOf(':')+1); } } diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 934a1b9ab8..9219c13af6 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -351,6 +351,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1) { engine = firstline.Substring(2, colon-2); + script = "//" + script.Substring(script.IndexOf(':')+1); } }