aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs12
1 files changed, 5 insertions, 7 deletions
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
3236 uint killerObj = 0; 3236 uint killerObj = 0;
3237 foreach (uint localid in coldata.Keys) 3237 foreach (uint localid in coldata.Keys)
3238 { 3238 {
3239 if (coldata[localid].PenetrationDepth <= 0.10f || m_invulnerable) 3239 SceneObjectPart part = Scene.GetSceneObjectPart(localid);
3240 continue;
3241 //if (localid == 0)
3242 //continue;
3243
3244 SceneObjectPart part = m_scene.GetSceneObjectPart(localid);
3245 3240
3246 if (part != null && part.ParentGroup.Damage != -1.0f) 3241 if (part != null && part.ParentGroup.Damage != -1.0f)
3247 Health -= part.ParentGroup.Damage; 3242 Health -= part.ParentGroup.Damage;
3248 else 3243 else
3249 Health -= coldata[localid].PenetrationDepth * 5.0f; 3244 {
3245 if (coldata[localid].PenetrationDepth >= 0.10f)
3246 Health -= coldata[localid].PenetrationDepth * 5.0f;
3247 }
3250 3248
3251 if (Health <= 0.0f) 3249 if (Health <= 0.0f)
3252 { 3250 {