Reserve a extra localID for a presence ( it will be localID + 1 )
parent
b21b6532b0
commit
16cf3967b4
|
@ -295,6 +295,18 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
return myID;
|
return myID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public uint AllocatePresenceLocalId()
|
||||||
|
{
|
||||||
|
uint myID;
|
||||||
|
|
||||||
|
_primAllocateMutex.WaitOne();
|
||||||
|
myID = ++m_lastAllocatedLocalId;
|
||||||
|
++m_lastAllocatedLocalId;
|
||||||
|
_primAllocateMutex.ReleaseMutex();
|
||||||
|
|
||||||
|
return myID;
|
||||||
|
}
|
||||||
|
|
||||||
#region Module Methods
|
#region Module Methods
|
||||||
|
|
||||||
|
|
|
@ -969,7 +969,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_name = String.Format("{0} {1}", Firstname, Lastname);
|
m_name = String.Format("{0} {1}", Firstname, Lastname);
|
||||||
m_scene = world;
|
m_scene = world;
|
||||||
m_uuid = client.AgentId;
|
m_uuid = client.AgentId;
|
||||||
LocalId = m_scene.AllocateLocalId();
|
LocalId = m_scene.AllocatePresenceLocalId();
|
||||||
|
|
||||||
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
|
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
|
||||||
if (account != null)
|
if (account != null)
|
||||||
|
|
Loading…
Reference in New Issue