diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/General/Util.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/General/Util.cs b/OpenSim/Framework/General/Util.cs index 5eae206..1ec7d78 100644 --- a/OpenSim/Framework/General/Util.cs +++ b/OpenSim/Framework/General/Util.cs | |||
@@ -152,15 +152,15 @@ namespace OpenSim.Framework.Utilities | |||
152 | return capsPath; | 152 | return capsPath; |
153 | } | 153 | } |
154 | 154 | ||
155 | //public static int fast_distance2d(int x, int y) | 155 | public static int fast_distance2d(int x, int y) |
156 | //{ | 156 | { |
157 | // x = System.Math.Abs(x); | 157 | x = System.Math.Abs(x); |
158 | // y = System.Math.Abs(y); | 158 | y = System.Math.Abs(y); |
159 | 159 | ||
160 | // int min = System.Math.Min(x, y); | 160 | int min = System.Math.Min(x, y); |
161 | 161 | ||
162 | // return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); | 162 | return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); |
163 | //} | 163 | } |
164 | 164 | ||
165 | public static string FieldToString(byte[] bytes) | 165 | public static string FieldToString(byte[] bytes) |
166 | { | 166 | { |