aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-24 15:11:19 +0000
committerTeravus Ovares2008-04-24 15:11:19 +0000
commit5c660ea0c59a15000e40fd7be7421c5f99bbe96c (patch)
tree2770814087ad60bc162ca58addd3c90db86c4613 /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parentauto table creation for nhibernate backends (diff)
downloadopensim-SC-5c660ea0c59a15000e40fd7be7421c5f99bbe96c.zip
opensim-SC-5c660ea0c59a15000e40fd7be7421c5f99bbe96c.tar.gz
opensim-SC-5c660ea0c59a15000e40fd7be7421c5f99bbe96c.tar.bz2
opensim-SC-5c660ea0c59a15000e40fd7be7421c5f99bbe96c.tar.xz
* Patch from Melanie. Mantis: 1040. Thanks Melanie!
* Implements llDeleteSubList in all it's modes. Corrects type selection in inventory functions. Adds support for INVENTORY_ALL selector
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 3273023..35f8ee0 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2269,7 +2269,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2269 int count = 0; 2269 int count = 0;
2270 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) 2270 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
2271 { 2271 {
2272 if (inv.Value.InvType == type) 2272 if (inv.Value.Type == type || type == -1)
2273 { 2273 {
2274 count = count + 1; 2274 count = count + 1;
2275 } 2275 }
@@ -2283,7 +2283,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2283 ArrayList keys = new ArrayList(); 2283 ArrayList keys = new ArrayList();
2284 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) 2284 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
2285 { 2285 {
2286 if (inv.Value.InvType == type) 2286 if (inv.Value.Type == type || type == -1)
2287 { 2287 {
2288 keys.Add(inv.Value.Name); 2288 keys.Add(inv.Value.Name);
2289 } 2289 }
@@ -2972,12 +2972,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2972 2972
2973 public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end) 2973 public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end)
2974 { 2974 {
2975 //LSL_Types.list ret = new LSL_Types.list(src); 2975 return src.DeleteSublist(end, start);
2976 //ret.RemoveRange(start, end - start);
2977 //return ret;
2978
2979 // Just a hunch - needs testing
2980 return src.GetSublist(end, start);
2981 } 2976 }
2982 2977
2983 public int llGetListEntryType(LSL_Types.list src, int index) 2978 public int llGetListEntryType(LSL_Types.list src, int index)