aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorPixelTomsen2012-01-31 17:44:39 +0100
committernebadon2012-01-31 10:17:38 -0700
commita98a146c50964c9d55d9cf512fa48df015fa8aaf (patch)
tree948935e8d78cddfec8a5fe1634f5a4e53f25cb34 /OpenSim/Region/ScriptEngine
parentMake parcel sale overlays work. No auction support. (diff)
downloadopensim-SC_OLD-a98a146c50964c9d55d9cf512fa48df015fa8aaf.zip
opensim-SC_OLD-a98a146c50964c9d55d9cf512fa48df015fa8aaf.tar.gz
opensim-SC_OLD-a98a146c50964c9d55d9cf512fa48df015fa8aaf.tar.bz2
opensim-SC_OLD-a98a146c50964c9d55d9cf512fa48df015fa8aaf.tar.xz
Fix:llSetText - limited text to a maximum of 254 chars
mantis: http://opensimulator.org/mantis/view.php?id=5867 Signed-off-by: nebadon <michael@osgrid.org>
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 50fe218..67dee02 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4039,9 +4039,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4039 Vector3 av3 = new Vector3(Util.Clip((float)color.x, 0.0f, 1.0f), 4039 Vector3 av3 = new Vector3(Util.Clip((float)color.x, 0.0f, 1.0f),
4040 Util.Clip((float)color.y, 0.0f, 1.0f), 4040 Util.Clip((float)color.y, 0.0f, 1.0f),
4041 Util.Clip((float)color.z, 0.0f, 1.0f)); 4041 Util.Clip((float)color.z, 0.0f, 1.0f));
4042 m_host.SetText(text, av3, Util.Clip((float)alpha, 0.0f, 1.0f)); 4042 m_host.SetText(text.Length > 254 ? text.Remove(255) : text, av3, Util.Clip((float)alpha, 0.0f, 1.0f));
4043 m_host.ParentGroup.HasGroupChanged = true; 4043 //m_host.ParentGroup.HasGroupChanged = true;
4044 m_host.ParentGroup.ScheduleGroupForFullUpdate(); 4044 //m_host.ParentGroup.ScheduleGroupForFullUpdate();
4045 } 4045 }
4046 4046
4047 public LSL_Float llWater(LSL_Vector offset) 4047 public LSL_Float llWater(LSL_Vector offset)