diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Location.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/Location.cs b/OpenSim/Framework/Location.cs index aed2b87..d0f01d0 100644 --- a/OpenSim/Framework/Location.cs +++ b/OpenSim/Framework/Location.cs | |||
@@ -86,6 +86,16 @@ namespace OpenSim.Framework | |||
86 | return X == x && y == Y; | 86 | return X == x && y == Y; |
87 | } | 87 | } |
88 | 88 | ||
89 | public static bool operator ==(Location o, object o2) | ||
90 | { | ||
91 | return o.Equals(o2); | ||
92 | } | ||
93 | |||
94 | public static bool operator !=(Location o, object o2) | ||
95 | { | ||
96 | return !o.Equals(o2); | ||
97 | } | ||
98 | |||
89 | public override int GetHashCode() | 99 | public override int GetHashCode() |
90 | { | 100 | { |
91 | return X.GetHashCode() * 29 + Y.GetHashCode(); | 101 | return X.GetHashCode() * 29 + Y.GetHashCode(); |