diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index f0ad1d5..c1429df 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -347,6 +347,12 @@ namespace OpenSim.Framework | |||
347 | return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); | 347 | return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); |
348 | } | 348 | } |
349 | 349 | ||
350 | public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy) | ||
351 | { | ||
352 | // Eventually this will be a function of the draw distance / camera position too. | ||
353 | return ((Math.Abs((int)(oldx - newx)) > 1) || (Math.Abs((int)(oldy - newy)) > 1)); | ||
354 | } | ||
355 | |||
350 | public static string FieldToString(byte[] bytes) | 356 | public static string FieldToString(byte[] bytes) |
351 | { | 357 | { |
352 | return FieldToString(bytes, String.Empty); | 358 | return FieldToString(bytes, String.Empty); |