LSL: limit sittext and touchtext to length current viewers cand display

0.9.1.0-post-fixes
UbitUmarov 2019-03-15 18:17:50 +00:00
parent 46dc9ebd4e
commit e1c20a32ca
1 changed files with 8 additions and 2 deletions

View File

@ -7991,13 +7991,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llSetTouchText(string text)
{
m_host.AddScriptLPS(1);
if(text.Length <= 9)
m_host.TouchName = text;
else
m_host.TouchName = text.Substring(0, 9);
}
public void llSetSitText(string text)
{
m_host.AddScriptLPS(1);
if (text.Length <= 9)
m_host.SitName = text;
else
m_host.SitName = text.Substring(0, 9);
}
public void llSetCameraEyeOffset(LSL_Vector offset)