diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs index e1ef4d0..d552229 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | |||
@@ -337,7 +337,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
337 | public void TestSitAndStandWithNoSitTarget() | 337 | public void TestSitAndStandWithNoSitTarget() |
338 | { | 338 | { |
339 | TestHelpers.InMethod(); | 339 | TestHelpers.InMethod(); |
340 | // log4net.Config.XmlConfigurator.Configure(); | 340 | // TestHelpers.EnableLogging(); |
341 | 341 | ||
342 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1)); | 342 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1)); |
343 | 343 | ||
@@ -355,13 +355,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
355 | Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); | 355 | Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); |
356 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); | 356 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); |
357 | 357 | ||
358 | // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the | ||
359 | // default avatar. | ||
360 | // Curiously, Vector3.ToString() will not display the last two places of the float. For example, | ||
361 | // printing out npc.AbsolutePosition will give <0, 0, 0.8454993> not <0, 0, 0.845499337> | ||
362 | Assert.That( | 358 | Assert.That( |
363 | npc.AbsolutePosition, | 359 | npc.AbsolutePosition, |
364 | Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, 0.845499337f))); | 360 | Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, sp.PhysicsActor.Size.Z / 2))); |
365 | 361 | ||
366 | m_npcMod.Stand(npc.UUID, m_scene); | 362 | m_npcMod.Stand(npc.UUID, m_scene); |
367 | 363 | ||