aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-03-15 18:17:50 +0000
committerUbitUmarov2019-03-15 18:17:50 +0000
commite1c20a32ca414ce95e1f41e92956eab5ca17f342 (patch)
tree1331da6123cfa04778dd88ea834ab5060c1e59f7
parentlludp: change zero encode of strings; limit them to what current viewers expect (diff)
downloadopensim-SC-e1c20a32ca414ce95e1f41e92956eab5ca17f342.zip
opensim-SC-e1c20a32ca414ce95e1f41e92956eab5ca17f342.tar.gz
opensim-SC-e1c20a32ca414ce95e1f41e92956eab5ca17f342.tar.bz2
opensim-SC-e1c20a32ca414ce95e1f41e92956eab5ca17f342.tar.xz
LSL: limit sittext and touchtext to length current viewers cand display
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index ab3562f..5dc6260 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7991,13 +7991,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7991 public void llSetTouchText(string text) 7991 public void llSetTouchText(string text)
7992 { 7992 {
7993 m_host.AddScriptLPS(1); 7993 m_host.AddScriptLPS(1);
7994 m_host.TouchName = text; 7994 if(text.Length <= 9)
7995 m_host.TouchName = text;
7996 else
7997 m_host.TouchName = text.Substring(0, 9);
7995 } 7998 }
7996 7999
7997 public void llSetSitText(string text) 8000 public void llSetSitText(string text)
7998 { 8001 {
7999 m_host.AddScriptLPS(1); 8002 m_host.AddScriptLPS(1);
8000 m_host.SitName = text; 8003 if (text.Length <= 9)
8004 m_host.SitName = text;
8005 else
8006 m_host.SitName = text.Substring(0, 9);
8001 } 8007 }
8002 8008
8003 public void llSetCameraEyeOffset(LSL_Vector offset) 8009 public void llSetCameraEyeOffset(LSL_Vector offset)