aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-30 23:36:56 +0000
committerMelanie Thielker2008-11-30 23:36:56 +0000
commitd1841ca94d382215a40a7433efcf24173967d80b (patch)
treea312f443e9328fbe5d82369beb3b2e12c4f9e387 /OpenSim/Framework/Util.cs
parentTry to fix Mantis#2727. SQLite seems to be able to store bigger numbers in (diff)
downloadopensim-SC_OLD-d1841ca94d382215a40a7433efcf24173967d80b.zip
opensim-SC_OLD-d1841ca94d382215a40a7433efcf24173967d80b.tar.gz
opensim-SC_OLD-d1841ca94d382215a40a7433efcf24173967d80b.tar.bz2
opensim-SC_OLD-d1841ca94d382215a40a7433efcf24173967d80b.tar.xz
Mantis #2584 (again)
Next step of diva's TP fixes and HG support
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs6
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);