remove some more of obsolete ninha joints code

This commit is contained in:
UbitUmarov
2022-03-19 01:06:44 +00:00
parent 0b205b91a6
commit 9bd8e45b30
9 changed files with 120 additions and 1163 deletions

View File

@@ -429,7 +429,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
}
else
{
if (ent.Velocity.Equals(ZeroVector))
if (ent.Velocity.IsZero())
{
objtype |= PASSIVE; // Passive non-moving
}
@@ -560,7 +560,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
// if the object the script is in is attached and the avatar is the owner
// then this one is not wanted
if (attached && presence.UUID == SensePoint.OwnerID)
if (attached && presence.UUID.Equals(SensePoint.OwnerID))
return;
toRegionPos = presence.AbsolutePosition;