From 6452c6c20b0cc1f971167e3b54696e369d1c3a83 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Sat, 11 Oct 2008 15:17:49 +0000 Subject: Add a + operator to LSLString, otherwise you will end up with CIL strings if you have expressions with strings. --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 5f8b541..2d79901 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1346,6 +1346,11 @@ namespace OpenSim.Region.ScriptEngine.Shared return s1.m_string != s2; } + public static LSLString operator +(LSLString s1, LSLString s2) + { + return new LSLString(s1.m_string + s2.m_string); + } + public static explicit operator double(LSLString s) { return Convert.ToDouble(s.m_string); -- cgit v1.1