diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f36c1a9..64bfaba 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3454,17 +3454,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
3454 | uint killerObj = 0; | 3454 | uint killerObj = 0; |
3455 | foreach (uint localid in coldata.Keys) | 3455 | foreach (uint localid in coldata.Keys) |
3456 | { | 3456 | { |
3457 | if (coldata[localid].PenetrationDepth <= 0.10f || m_invulnerable) | 3457 | SceneObjectPart part = Scene.GetSceneObjectPart(localid); |
3458 | continue; | ||
3459 | //if (localid == 0) | ||
3460 | //continue; | ||
3461 | |||
3462 | SceneObjectPart part = m_scene.GetSceneObjectPart(localid); | ||
3463 | 3458 | ||
3464 | if (part != null && part.ParentGroup.Damage != -1.0f) | 3459 | if (part != null && part.ParentGroup.Damage != -1.0f) |
3465 | Health -= part.ParentGroup.Damage; | 3460 | Health -= part.ParentGroup.Damage; |
3466 | else | 3461 | else |
3467 | Health -= coldata[localid].PenetrationDepth * 5.0f; | 3462 | { |
3463 | if (coldata[localid].PenetrationDepth >= 0.10f) | ||
3464 | Health -= coldata[localid].PenetrationDepth * 5.0f; | ||
3465 | } | ||
3468 | 3466 | ||
3469 | if (Health <= 0.0f) | 3467 | if (Health <= 0.0f) |
3470 | { | 3468 | { |