From 6056247ac3002808c95d7a1c6671c388920ec2ed Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 16 May 2007 17:12:17 +0000 Subject: * removed unused new-login.dat * cleared up verbose/noverbose/disableOutput douple negation confusion in ConsoleBase * 2d chat radius is now 3d chat sphere * removed unused fast 2d radius calc * added chat type 0xFF : broadcast (no sphere checking) * OpenSimMain now exposes its LocalWorld --- OpenSim.Framework/Util.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'OpenSim.Framework/Util.cs') diff --git a/OpenSim.Framework/Util.cs b/OpenSim.Framework/Util.cs index 17ca611..5bf7ff9 100644 --- a/OpenSim.Framework/Util.cs +++ b/OpenSim.Framework/Util.cs @@ -36,15 +36,15 @@ namespace OpenSim.Framework.Utilities return id; } - public static int fast_distance2d(int x, int y) - { - x = System.Math.Abs(x); - y = System.Math.Abs(y); + //public static int fast_distance2d(int x, int y) + //{ + // x = System.Math.Abs(x); + // y = System.Math.Abs(y); - int min = System.Math.Min(x, y); + // int min = System.Math.Min(x, y); - return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); - } + // return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); + //} public static string FieldToString(byte[] bytes) { @@ -130,5 +130,4 @@ namespace OpenSim.Framework.Utilities } } - } -- cgit v1.1