diff options
author | Melanie | 2012-08-25 18:08:10 +0100 |
---|---|---|
committer | Melanie | 2012-08-25 18:08:10 +0100 |
commit | 007a45aa76af0029a43b634a0a44a48f15ea5654 (patch) | |
tree | 5a5202f11b7b54953ea462d70a25dec77502f5eb /OpenSim/Region/ScriptEngine/Shared | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Following on from f8a89a79, do not allow more than one 'type' folder (e.g. ca... (diff) | |
download | opensim-SC_OLD-007a45aa76af0029a43b634a0a44a48f15ea5654.zip opensim-SC_OLD-007a45aa76af0029a43b634a0a44a48f15ea5654.tar.gz opensim-SC_OLD-007a45aa76af0029a43b634a0a44a48f15ea5654.tar.bz2 opensim-SC_OLD-007a45aa76af0029a43b634a0a44a48f15ea5654.tar.xz |
Merge commit 'a0d178b284050df64d0eb5b9728565fd72615c22' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0c7f49b..5386a28 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5571,25 +5571,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5571 | /// separated list. There is a space after | 5571 | /// separated list. There is a space after |
5572 | /// each comma. | 5572 | /// each comma. |
5573 | /// </summary> | 5573 | /// </summary> |
5574 | |||
5575 | public LSL_String llList2CSV(LSL_List src) | 5574 | public LSL_String llList2CSV(LSL_List src) |
5576 | { | 5575 | { |
5577 | |||
5578 | string ret = String.Empty; | ||
5579 | int x = 0; | ||
5580 | |||
5581 | m_host.AddScriptLPS(1); | 5576 | m_host.AddScriptLPS(1); |
5582 | 5577 | ||
5583 | if (src.Data.Length > 0) | 5578 | return string.Join(", ", |
5584 | { | 5579 | (new List<object>(src.Data)).ConvertAll<string>(o => |
5585 | ret = src.Data[x++].ToString(); | 5580 | { |
5586 | for (; x < src.Data.Length; x++) | 5581 | return o.ToString(); |
5587 | { | 5582 | }).ToArray()); |
5588 | ret += ", "+src.Data[x].ToString(); | ||
5589 | } | ||
5590 | } | ||
5591 | |||
5592 | return ret; | ||
5593 | } | 5583 | } |
5594 | 5584 | ||
5595 | /// <summary> | 5585 | /// <summary> |