* Fixes Location == Location, and Location != Location

This commit is contained in:
Teravus Ovares
2008-11-28 20:37:21 +00:00
parent dfbec673a4
commit c9a5215d6d
3 changed files with 28 additions and 2 deletions

View File

@@ -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();