mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* 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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user