aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs20
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>