a few changes to last commit

This commit is contained in:
UbitUmarov
2018-10-23 18:55:26 +01:00
parent 06a35b9559
commit c643b4236f
3 changed files with 16 additions and 18 deletions

View File

@@ -6844,28 +6844,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return String.Empty;
}
public LSL_Key llName2Key(string name)
public LSL_Key llName2Key(LSL_String name)
{
m_host.AddScriptLPS(1);
foreach (ScenePresence sp in World.GetScenePresences())
{
if (sp.IsDeleted || sp.IsChildAgent)
continue;
string test = sp.ControllingClient.Name;
if (!name.Contains(" "))
test = test.Replace(" ", ".");
if (String.Compare(name, test, true) == 0)
{
if (!sp.IsNPC)
return sp.UUID.ToString();
}
return sp.UUID.ToString();
}
return UUID.Zero.ToString();
}
public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
{
m_host.AddScriptLPS(1);