* Removing ODEPrim and ODECharacter GetHashCode() overrides since they were based on something that could change

* Tweaked a few other GetHashCode() overrides to bring them in line with MSDN recommendations
prioritization
John Hurliman 2009-10-20 10:56:15 -07:00
parent 9a5e7222ce
commit 8151190a45
4 changed files with 2 additions and 12 deletions

View File

@ -98,7 +98,7 @@ namespace OpenSim.Framework
public override int GetHashCode()
{
return X.GetHashCode() * 29 + Y.GetHashCode();
return X.GetHashCode() ^ Y.GetHashCode();
}
public object Clone()

View File

@ -231,11 +231,6 @@ namespace OpenSim.Region.Physics.OdePlugin
set { m_localID = value; }
}
public override int GetHashCode()
{
return (int)m_localID;
}
public override bool Grabbed
{
set { return; }

View File

@ -259,11 +259,6 @@ namespace OpenSim.Region.Physics.OdePlugin
m_localID = value; }
}
public override int GetHashCode()
{
return (int)m_localID;
}
public override bool Grabbed
{
set { return; }

View File

@ -1975,7 +1975,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
public override int GetHashCode()
{
return Convert.ToInt32(value);
return value.GetHashCode();
}