diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Location.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 2 |
4 files changed, 2 insertions, 12 deletions
diff --git a/OpenSim/Framework/Location.cs b/OpenSim/Framework/Location.cs index 62ab5c7..9504e03 100644 --- a/OpenSim/Framework/Location.cs +++ b/OpenSim/Framework/Location.cs | |||
@@ -98,7 +98,7 @@ namespace OpenSim.Framework | |||
98 | 98 | ||
99 | public override int GetHashCode() | 99 | public override int GetHashCode() |
100 | { | 100 | { |
101 | return X.GetHashCode() * 29 + Y.GetHashCode(); | 101 | return X.GetHashCode() ^ Y.GetHashCode(); |
102 | } | 102 | } |
103 | 103 | ||
104 | public object Clone() | 104 | public object Clone() |
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index ef0e56e..71ace16 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -231,11 +231,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
231 | set { m_localID = value; } | 231 | set { m_localID = value; } |
232 | } | 232 | } |
233 | 233 | ||
234 | public override int GetHashCode() | ||
235 | { | ||
236 | return (int)m_localID; | ||
237 | } | ||
238 | |||
239 | public override bool Grabbed | 234 | public override bool Grabbed |
240 | { | 235 | { |
241 | set { return; } | 236 | set { return; } |
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 63bfc90..4581d22 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -259,11 +259,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
259 | m_localID = value; } | 259 | m_localID = value; } |
260 | } | 260 | } |
261 | 261 | ||
262 | public override int GetHashCode() | ||
263 | { | ||
264 | return (int)m_localID; | ||
265 | } | ||
266 | |||
267 | public override bool Grabbed | 262 | public override bool Grabbed |
268 | { | 263 | { |
269 | set { return; } | 264 | set { return; } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 2842f6b..3f38bb6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1975,7 +1975,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1975 | 1975 | ||
1976 | public override int GetHashCode() | 1976 | public override int GetHashCode() |
1977 | { | 1977 | { |
1978 | return Convert.ToInt32(value); | 1978 | return value.GetHashCode(); |
1979 | } | 1979 | } |
1980 | 1980 | ||
1981 | 1981 | ||