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