diff options
author | Justin Clark-Casey (justincc) | 2014-04-03 01:14:39 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-04-03 01:14:39 +0100 |
commit | 6ac9c9c97277e510cbe7eb908f3cf7883a01c1c3 (patch) | |
tree | af88d18d76d7212252f8c8215dd42e3e0d2b025e /OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs | |
parent | minor: Fix warning in AvatarFactoryModule (diff) | |
download | opensim-SC-6ac9c9c97277e510cbe7eb908f3cf7883a01c1c3.zip opensim-SC-6ac9c9c97277e510cbe7eb908f3cf7883a01c1c3.tar.gz opensim-SC-6ac9c9c97277e510cbe7eb908f3cf7883a01c1c3.tar.bz2 opensim-SC-6ac9c9c97277e510cbe7eb908f3cf7883a01c1c3.tar.xz |
refactor: Use m_sittingAvatars to maintain the list of sitting avatars instead of two independent structures that do exactly the same thing
m_sittingAvatars code also already properly handles locking to avoid races.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs index d65b0b6..969f73d 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectCrossingTests.cs | |||
@@ -172,7 +172,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
172 | so1PostCross = sceneB.GetSceneObjectGroup(so1Id); | 172 | so1PostCross = sceneB.GetSceneObjectGroup(so1Id); |
173 | Assert.NotNull(so1PostCross); | 173 | Assert.NotNull(so1PostCross); |
174 | Assert.AreEqual(1, so1PostCross.GetSittingAvatarsCount()); | 174 | Assert.AreEqual(1, so1PostCross.GetSittingAvatarsCount()); |
175 | Assert.AreEqual(1, so1PostCross.GetLinkedAvatars().Count); | ||
176 | } | 175 | } |
177 | 176 | ||
178 | Vector3 so1PostCrossPos = so1PostCross.AbsolutePosition; | 177 | Vector3 so1PostCrossPos = so1PostCross.AbsolutePosition; |
@@ -198,7 +197,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
198 | SceneObjectGroup so1PostReCross = sceneA.GetSceneObjectGroup(so1Id); | 197 | SceneObjectGroup so1PostReCross = sceneA.GetSceneObjectGroup(so1Id); |
199 | Assert.NotNull(so1PostReCross); | 198 | Assert.NotNull(so1PostReCross); |
200 | Assert.AreEqual(1, so1PostReCross.GetSittingAvatarsCount()); | 199 | Assert.AreEqual(1, so1PostReCross.GetSittingAvatarsCount()); |
201 | Assert.AreEqual(1, so1PostReCross.GetLinkedAvatars().Count); | ||
202 | } | 200 | } |
203 | } | 201 | } |
204 | 202 | ||