* 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 recommendationsprioritization
parent
9a5e7222ce
commit
8151190a45
|
@ -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()
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -1975,7 +1975,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Convert.ToInt32(value);
|
||||
return value.GetHashCode();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue