From f926d917cbf14d59f663be254dc107603da187af Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 25 Sep 2008 17:54:44 +0000 Subject: Fix script engine name parsing for DotNetEngine to make that actually work Add a reference for Windows builds --- OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs | 2 +- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 0308169..deb995b 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs @@ -240,7 +240,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase } } - if (engine != "DotNetEngine") + if (engine != myScriptEngine.ScriptEngineName) return; myScriptEngine.Log.Debug("OnRezScript localID: " + localID + " LLUID: " + itemID.ToString() + " Size: " + diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index f11ccc4..3a06462 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -359,7 +359,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine } } - if (engine != "XEngine") + if (engine != ScriptEngineName) return; Object[] parms = new Object[]{localID, itemID, script, startParam, postOnRez}; -- cgit v1.1