From da8923450a2682ec3544cd6c814e691fb8cb4428 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Mon, 21 Jan 2008 12:00:27 +0000 Subject: Small bug in ResetScript --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 4 ---- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 191d3b2..48ac3bb 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs @@ -29,11 +29,7 @@ using System; using Nini.Config; using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; -using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; -using EventManager=OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.EventManager; namespace OpenSim.Region.ScriptEngine.DotNetEngine { diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 3bc64be..5e1b537 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs @@ -27,17 +27,11 @@ */ /* Original code: Tedd Hansen */ using System; -using System.Collections.Generic; -using System.IO; -using System.Reflection; -using System.Runtime.Serialization.Formatters.Binary; -using System.Threading; using libsecondlife; using OpenSim.Framework; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.ScriptEngine.Common; using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; -using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; namespace OpenSim.Region.ScriptEngine.DotNetEngine { @@ -86,7 +80,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); #endif - CompiledScript.Source = ScriptSource; + CompiledScript.Source = Script; // Add it to our script memstruct SetScript(localID, itemID, CompiledScript); -- cgit v1.1