mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
* Fixes Location == Location, and Location != Location
This commit is contained in:
@@ -86,6 +86,16 @@ namespace OpenSim.Framework
|
||||
return X == x && y == Y;
|
||||
}
|
||||
|
||||
public static bool operator ==(Location o, object o2)
|
||||
{
|
||||
return o.Equals(o2);
|
||||
}
|
||||
|
||||
public static bool operator !=(Location o, object o2)
|
||||
{
|
||||
return !o.Equals(o2);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return X.GetHashCode() * 29 + Y.GetHashCode();
|
||||
|
||||
Reference in New Issue
Block a user