diff options
Diffstat (limited to 'OpenSim/Region')
-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 0d275f7..2bfb9b3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5165,25 +5165,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5165 | /// separated list. There is a space after | 5165 | /// separated list. There is a space after |
5166 | /// each comma. | 5166 | /// each comma. |
5167 | /// </summary> | 5167 | /// </summary> |
5168 | |||
5169 | public LSL_String llList2CSV(LSL_List src) | 5168 | public LSL_String llList2CSV(LSL_List src) |
5170 | { | 5169 | { |
5171 | |||
5172 | string ret = String.Empty; | ||
5173 | int x = 0; | ||
5174 | |||
5175 | m_host.AddScriptLPS(1); | 5170 | m_host.AddScriptLPS(1); |
5176 | 5171 | ||
5177 | if (src.Data.Length > 0) | 5172 | return string.Join(", ", |
5178 | { | 5173 | (new List<object>(src.Data)).ConvertAll<string>(o => |
5179 | ret = src.Data[x++].ToString(); | 5174 | { |
5180 | for (; x < src.Data.Length; x++) | 5175 | return o.ToString(); |
5181 | { | 5176 | }).ToArray()); |
5182 | ret += ", "+src.Data[x].ToString(); | ||
5183 | } | ||
5184 | } | ||
5185 | |||
5186 | return ret; | ||
5187 | } | 5177 | } |
5188 | 5178 | ||
5189 | /// <summary> | 5179 | /// <summary> |