mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
remove some more of obsolete ninha joints code
This commit is contained in:
@@ -224,7 +224,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
List<string> toremove = new List<string>(DataserverRequests.Count);
|
||||
foreach (DataserverRequest ds in DataserverRequests.Values)
|
||||
{
|
||||
if (ds.itemID == itemID)
|
||||
if (ds.itemID.Equals(itemID))
|
||||
toremove.Add(ds.handle);
|
||||
}
|
||||
foreach (string s in toremove)
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
|
||||
foreach (TimerInfo ts in tvals)
|
||||
{
|
||||
if (ts.itemID == itemID)
|
||||
if (ts.itemID.Equals(itemID))
|
||||
{
|
||||
data.Add(ts.interval);
|
||||
data.Add(ts.next-DateTime.Now.Ticks);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user