aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs6
3 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 28a512b..6324f1a 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -3122,7 +3122,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3122 3122
3123 } 3123 }
3124 3124
3125 double angle = 2 * Math.Acos(rot.s); 3125 // double angle = 2 * Math.Acos(rot.s);
3126 double s = Math.Sqrt(1 - rot.s * rot.s); 3126 double s = Math.Sqrt(1 - rot.s * rot.s);
3127 if (s < 0.001) 3127 if (s < 0.001)
3128 { 3128 {
@@ -3960,7 +3960,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3960 { 3960 {
3961 int index = str.IndexOf(delimiters[i].ToString()); 3961 int index = str.IndexOf(delimiters[i].ToString());
3962 bool found = index != -1; 3962 bool found = index != -1;
3963 if (found && String.Empty != delimiters[i]) 3963 if (found && String.Empty != (string)delimiters[i])
3964 { 3964 {
3965 if ((cindex > index) || (cindex == -1)) 3965 if ((cindex > index) || (cindex == -1))
3966 { 3966 {
@@ -4049,7 +4049,7 @@ namespace OpenSim.Region.ScriptEngine.Common
4049 4049
4050 private String[] GetNotecardLines(string name) 4050 private String[] GetNotecardLines(string name)
4051 { 4051 {
4052 bool found = false; 4052 // bool found = false;
4053 int notecardIndex = 0; 4053 int notecardIndex = 0;
4054 String[] notecardLines = { "0" }; 4054 String[] notecardLines = { "0" };
4055 notecardLines[0] = String.Empty; 4055 notecardLines[0] = String.Empty;
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
index fc005ab..ef87b2f 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
@@ -125,7 +125,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
125 } 125 }
126 } 126 }
127 127
128 private ScriptEngine lastScriptEngine; // Keep track of what ScriptEngine instance we are at so we can give exception 128 // private ScriptEngine lastScriptEngine; // Keep track of what ScriptEngine instance we are at so we can give exception
129 /// <summary> 129 /// <summary>
130 /// A thread should run in this loop and check all running scripts 130 /// A thread should run in this loop and check all running scripts
131 /// </summary> 131 /// </summary>
@@ -171,7 +171,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
171 //{ 171 //{
172 foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines)) 172 foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines))
173 { 173 {
174 lastScriptEngine = m_ScriptEngine; 174 // lastScriptEngine = m_ScriptEngine;
175 // Re-reading config every x seconds 175 // Re-reading config every x seconds
176 if (MaintenanceLoopTicks_Other_Count >= MaintenanceLoopTicks_Other) 176 if (MaintenanceLoopTicks_Other_Count >= MaintenanceLoopTicks_Other)
177 { 177 {
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
index 366aaf1..eed0b86 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
@@ -59,7 +59,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
59 59
60 private Thread scriptLoadUnloadThread; 60 private Thread scriptLoadUnloadThread;
61 private static Thread staticScriptLoadUnloadThread; 61 private static Thread staticScriptLoadUnloadThread;
62 private int scriptLoadUnloadThread_IdleSleepms; 62 // private int scriptLoadUnloadThread_IdleSleepms;
63 private Queue<LUStruct> LUQueue = new Queue<LUStruct>(); 63 private Queue<LUStruct> LUQueue = new Queue<LUStruct>();
64 private static bool PrivateThread; 64 private static bool PrivateThread;
65 private int LoadUnloadMaxQueueSize; 65 private int LoadUnloadMaxQueueSize;
@@ -100,7 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
100 100
101 public void ReadConfig() 101 public void ReadConfig()
102 { 102 {
103 scriptLoadUnloadThread_IdleSleepms = m_scriptEngine.ScriptConfigSource.GetInt("ScriptLoadUnloadLoopms", 30); 103 // scriptLoadUnloadThread_IdleSleepms = m_scriptEngine.ScriptConfigSource.GetInt("ScriptLoadUnloadLoopms", 30);
104 // TODO: Requires sharing of all ScriptManagers to single thread 104 // TODO: Requires sharing of all ScriptManagers to single thread
105 PrivateThread = true; // m_scriptEngine.ScriptConfigSource.GetBoolean("PrivateScriptLoadUnloadThread", false); 105 PrivateThread = true; // m_scriptEngine.ScriptConfigSource.GetBoolean("PrivateScriptLoadUnloadThread", false);
106 LoadUnloadMaxQueueSize = m_scriptEngine.ScriptConfigSource.GetInt("LoadUnloadMaxQueueSize", 100); 106 LoadUnloadMaxQueueSize = m_scriptEngine.ScriptConfigSource.GetInt("LoadUnloadMaxQueueSize", 100);
@@ -245,7 +245,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
245 245
246 #region Start/Stop/Reset script 246 #region Start/Stop/Reset script
247 247
248 private readonly Object startStopLock = new Object(); 248 // private readonly Object startStopLock = new Object();
249 249
250 /// <summary> 250 /// <summary>
251 /// Fetches, loads and hooks up a script to an objects events 251 /// Fetches, loads and hooks up a script to an objects events