aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs18
1 files changed, 7 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 39636b6..4ae4fe2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4696,20 +4696,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4696 if (cindex > 0) 4696 if (cindex > 0)
4697 { 4697 {
4698 ret.Add(str.Substring(0, cindex)); 4698 ret.Add(str.Substring(0, cindex));
4699 // Cannot use spacers.Contains() because spacers may be either type String or LSLString 4699 }
4700 for (int j = 0; j < spacers.Length; j++) 4700 // Cannot use spacers.Contains() because spacers may be either type String or LSLString
4701 for (int j = 0; j < spacers.Length; j++)
4702 {
4703 if (spacers.Data[j].ToString() == cdeli)
4701 { 4704 {
4702 if (spacers.Data[j].ToString() == cdeli) 4705 ret.Add(cdeli);
4703 { 4706 break;
4704 ret.Add(cdeli);
4705 break;
4706 }
4707 } 4707 }
4708 } 4708 }
4709 if (cindex == 0 && spacers.Contains(cdeli))
4710 {
4711 ret.Add(cdeli);
4712 }
4713 str = str.Substring(cindex + cdeli.Length); 4709 str = str.Substring(cindex + cdeli.Length);
4714 } 4710 }
4715 } while (dfound); 4711 } while (dfound);