aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJeff Ames2009-02-13 02:52:08 +0000
committerJeff Ames2009-02-13 02:52:08 +0000
commit163c1026d15a8f70c649d8d5880cf9fb4abb9a65 (patch)
tree8654590bb07c88c52f85c319762e4270e130e302 /OpenSim/Region
parentAdd copyright headers. Minor formatting cleanup. Fix some compiler warnings... (diff)
downloadopensim-SC_OLD-163c1026d15a8f70c649d8d5880cf9fb4abb9a65.zip
opensim-SC_OLD-163c1026d15a8f70c649d8d5880cf9fb4abb9a65.tar.gz
opensim-SC_OLD-163c1026d15a8f70c649d8d5880cf9fb4abb9a65.tar.bz2
opensim-SC_OLD-163c1026d15a8f70c649d8d5880cf9fb4abb9a65.tar.xz
Fix some compiler warnings. Minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineTest.cs4
4 files changed, 6 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
index c0a3c4d..49e87c0 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
@@ -39,7 +39,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
39 /// </summary> 39 /// </summary>
40 public class MaintenanceThread 40 public class MaintenanceThread
41 { 41 {
42
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 43
45 //public ScriptEngine m_ScriptEngine; 44 //public ScriptEngine m_ScriptEngine;
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
index 3de3aad..0c06630 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
@@ -505,7 +505,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
505 return 0; 505 return 0;
506 } 506 }
507 507
508
509 #endregion 508 #endregion
510 509
511 #region Internal functions to keep track of script 510 #region Internal functions to keep track of script
@@ -591,7 +590,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
591 StartScript(localID, itemID, script, id.StartParam, false); 590 StartScript(localID, itemID, script, id.StartParam, false);
592 } 591 }
593 592
594
595 #region Script serialization/deserialization 593 #region Script serialization/deserialization
596 594
597 public void GetSerializedScript(uint localID, UUID itemID) 595 public void GetSerializedScript(uint localID, UUID itemID)
@@ -623,9 +621,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
623 621
624 public int GetStartParameter(UUID itemID) 622 public int GetStartParameter(UUID itemID)
625 { 623 {
626
627 uint localID = GetLocalID(itemID); 624 uint localID = GetLocalID(itemID);
628
629 InstanceData id = GetScript(localID, itemID); 625 InstanceData id = GetScript(localID, itemID);
630 626
631 if (id == null) 627 if (id == null)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 69ac517..cd17399 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -361,12 +361,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
361 361
362 public LSL_Integer llAbs(int i) 362 public LSL_Integer llAbs(int i)
363 { 363 {
364 // changed to replicate LSL behaviour whereby minimum int value is returned untouched. 364 // changed to replicate LSL behaviour whereby minimum int value is returned untouched.
365 m_host.AddScriptLPS(1); 365 m_host.AddScriptLPS(1);
366 if(i == Int32.MinValue) 366 if (i == Int32.MinValue)
367 return i; 367 return i;
368 else 368 else
369 return (int)Math.Abs(i); 369 return (int)Math.Abs(i);
370 } 370 }
371 371
372 public LSL_Float llFabs(double f) 372 public LSL_Float llFabs(double f)
diff --git a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineTest.cs b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineTest.cs
index 17d26ef..663b0ca 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineTest.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineTest.cs
@@ -47,7 +47,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
47 47
48 public static Random random; 48 public static Random random;
49 public TestClient testclient; 49 public TestClient testclient;
50 TestCommunicationsManager cm; 50 //TestCommunicationsManager cm;
51 51
52 [TestFixtureSetUp] 52 [TestFixtureSetUp]
53 public void Init() 53 public void Init()
@@ -65,4 +65,4 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
65 xengine.PostInitialise(); 65 xengine.PostInitialise();
66 } 66 }
67 } 67 }
68} \ No newline at end of file 68}