mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Merge branch 'master' into careminster
This commit is contained in:
@@ -3454,17 +3454,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user