diff options
author | Melanie | 2010-01-21 23:47:40 +0000 |
---|---|---|
committer | Melanie | 2010-01-21 23:47:40 +0000 |
commit | 946e06eb58bee7aaedf8b08c44a1e4cf2d63511e (patch) | |
tree | 5a142aa20973a787bc8353df5bd2027bc4984c10 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Adds example to OpenSim.ini.example for Admin Default Parcel settings (diff) | |
parent | Fixes llSetDamage. Patch from Revolution (diff) | |
download | opensim-SC_OLD-946e06eb58bee7aaedf8b08c44a1e4cf2d63511e.zip opensim-SC_OLD-946e06eb58bee7aaedf8b08c44a1e4cf2d63511e.tar.gz opensim-SC_OLD-946e06eb58bee7aaedf8b08c44a1e4cf2d63511e.tar.bz2 opensim-SC_OLD-946e06eb58bee7aaedf8b08c44a1e4cf2d63511e.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-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 | { |