From 14e62c096d571a47abffd1a954c1a949300f156c Mon Sep 17 00:00:00 2001 From: Revolution Date: Thu, 21 Jan 2010 18:12:40 -0600 Subject: Fixes llSetDamage. Patch from Revolution --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 8545425..39a2c65 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3236,17 +3236,15 @@ namespace OpenSim.Region.Framework.Scenes uint killerObj = 0; foreach (uint localid in coldata.Keys) { - if (coldata[localid].PenetrationDepth <= 0.10f || m_invulnerable) - continue; - //if (localid == 0) - //continue; - - SceneObjectPart part = m_scene.GetSceneObjectPart(localid); + SceneObjectPart part = Scene.GetSceneObjectPart(localid); if (part != null && part.ParentGroup.Damage != -1.0f) Health -= part.ParentGroup.Damage; else - Health -= coldata[localid].PenetrationDepth * 5.0f; + { + if (coldata[localid].PenetrationDepth >= 0.10f) + Health -= coldata[localid].PenetrationDepth * 5.0f; + } if (Health <= 0.0f) { -- cgit v1.1