aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Location.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-11-28 20:37:21 +0000
committerTeravus Ovares2008-11-28 20:37:21 +0000
commitc9a5215d6d1376260df22571482dc77bfe7aeb2d (patch)
treee2baa4a7963ab2a5d18092c29494bda5cf31083a /OpenSim/Framework/Location.cs
parent* simplify AddNewClient since making this root without using MakeRootAgent() ... (diff)
downloadopensim-SC-c9a5215d6d1376260df22571482dc77bfe7aeb2d.zip
opensim-SC-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.gz
opensim-SC-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.bz2
opensim-SC-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.xz
* Fixes Location == Location, and Location != Location
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Location.cs10
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();