diff options
author | Melanie Thielker | 2008-11-10 20:58:24 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-10 20:58:24 +0000 |
commit | 58e74b554f233c0848dddc93f33aea49d8246a82 (patch) | |
tree | 8966e55e15ae161bd968aa27a616e920e4a4debf /OpenSim/Region/Environment/Scenes/ScenePresence.cs | |
parent | * refactor: Make xml (orig format) loading method reuse existing set root par... (diff) | |
download | opensim-SC_OLD-58e74b554f233c0848dddc93f33aea49d8246a82.zip opensim-SC_OLD-58e74b554f233c0848dddc93f33aea49d8246a82.tar.gz opensim-SC_OLD-58e74b554f233c0848dddc93f33aea49d8246a82.tar.bz2 opensim-SC_OLD-58e74b554f233c0848dddc93f33aea49d8246a82.tar.xz |
Restore the independent LocalID numbering for avatars. Fixes an issue where
it becomes impossible to cross back into a region you came from, or freeze
several seconds after region crossings.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index bdb0444..bfd210e 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -492,7 +492,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
492 | m_scene = world; | 492 | m_scene = world; |
493 | m_uuid = client.AgentId; | 493 | m_uuid = client.AgentId; |
494 | m_regionInfo = reginfo; | 494 | m_regionInfo = reginfo; |
495 | m_localId = m_scene.AllocateLocalId(); | 495 | m_localId = m_scene.NextAvatarLocalId; |
496 | 496 | ||
497 | IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); | 497 | IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); |
498 | if (gm != null) | 498 | if (gm != null) |
@@ -2215,6 +2215,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
2215 | 2215 | ||
2216 | CrossAttachmentsIntoNewRegion(neighbourHandle, true); | 2216 | CrossAttachmentsIntoNewRegion(neighbourHandle, true); |
2217 | 2217 | ||
2218 | // m_scene.SendKillObject(m_localId); | ||
2219 | |||
2218 | m_scene.NotifyMyCoarseLocationChange(); | 2220 | m_scene.NotifyMyCoarseLocationChange(); |
2219 | // the user may change their profile information in other region, | 2221 | // the user may change their profile information in other region, |
2220 | // so the userinfo in UserProfileCache is not reliable any more, delete it | 2222 | // so the userinfo in UserProfileCache is not reliable any more, delete it |
@@ -2264,6 +2266,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2264 | /// </summary> | 2266 | /// </summary> |
2265 | public void ChildAgentDataUpdate(ChildAgentDataUpdate cAgentData, uint tRegionX, uint tRegionY, uint rRegionX, uint rRegionY) | 2267 | public void ChildAgentDataUpdate(ChildAgentDataUpdate cAgentData, uint tRegionX, uint tRegionY, uint rRegionX, uint rRegionY) |
2266 | { | 2268 | { |
2269 | // | ||
2267 | if (!IsChildAgent) | 2270 | if (!IsChildAgent) |
2268 | return; | 2271 | return; |
2269 | 2272 | ||