mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* 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
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user