aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
authorMelanie2013-10-04 20:03:12 +0100
committerMelanie2013-10-04 20:03:12 +0100
commit75c68fa29e3a2fed81c883e7925bf161e968639f (patch)
tree13ba69e6818f634018a5954d38750cf48128b7f8 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
parentMerge branch 'avination-current' into careminster (diff)
parentminor: Disable logging left active on regression test TestSameSimulatorIsolat... (diff)
downloadopensim-SC-75c68fa29e3a2fed81c883e7925bf161e968639f.zip
opensim-SC-75c68fa29e3a2fed81c883e7925bf161e968639f.tar.gz
opensim-SC-75c68fa29e3a2fed81c883e7925bf161e968639f.tar.bz2
opensim-SC-75c68fa29e3a2fed81c883e7925bf161e968639f.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Data/MySQL/MySQLSimulationData.cs OpenSim/Data/MySQL/Resources/RegionStore.migrations OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/Framework/Scenes/ScenePresence.cs OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCapabilityTests.cs OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f05aaa9..8892b69 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8900,8 +8900,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8900 int idx=0; 8900 int idx=0;
8901 while (idx < rules.Length) 8901 while (idx < rules.Length)
8902 { 8902 {
8903 int code=(int)rules.GetLSLIntegerItem(idx++); 8903 int code = (int)rules.GetLSLIntegerItem(idx++);
8904 int remain=rules.Length-idx; 8904 int remain = rules.Length - idx;
8905 8905
8906 switch (code) 8906 switch (code)
8907 { 8907 {
@@ -8974,7 +8974,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8974 break; 8974 break;
8975 8975
8976 case ScriptBaseClass.PRIM_TYPE_SCULPT: 8976 case ScriptBaseClass.PRIM_TYPE_SCULPT:
8977 res.Add(Shape.SculptTexture.ToString()); 8977 res.Add(new LSL_String(Shape.SculptTexture.ToString()));
8978 res.Add(new LSL_Integer(Shape.SculptType)); 8978 res.Add(new LSL_Integer(Shape.SculptType));
8979 break; 8979 break;
8980 8980
@@ -9316,7 +9316,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9316 )); 9316 ));
9317 break; 9317 break;
9318 case (int)ScriptBaseClass.PRIM_LINK_TARGET: 9318 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
9319 if(remain < 3) 9319
9320 // TODO: Should be issuing a runtime script warning in this case.
9321 if (remain < 2)
9320 return null; 9322 return null;
9321 9323
9322 return rules.GetSublist(idx, -1); 9324 return rules.GetSublist(idx, -1);