aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-20 05:51:38 +0000
committerTeravus Ovares2008-01-20 05:51:38 +0000
commit64392b4fac835bbc86e0bb8acfef20550cf257df (patch)
treecb892b8447ec52514e07bc3cabbf210226de3e86 /OpenSim/Region/Environment/Scenes
parent* Announcing the alternative prim early adoption program.. Adding regular ... (diff)
downloadopensim-SC_OLD-64392b4fac835bbc86e0bb8acfef20550cf257df.zip
opensim-SC_OLD-64392b4fac835bbc86e0bb8acfef20550cf257df.tar.gz
opensim-SC_OLD-64392b4fac835bbc86e0bb8acfef20550cf257df.tar.bz2
opensim-SC_OLD-64392b4fac835bbc86e0bb8acfef20550cf257df.tar.xz
* Found and fixed a situation where a neighbor region would come up send a notice and would be tagged as 'too far away' when it was right next door.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index f327b2b..76f6c60 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -335,8 +335,12 @@ namespace OpenSim.Region.Environment.Scenes
335 m_neighbours.Add(otherRegion); 335 m_neighbours.Add(otherRegion);
336 } 336 }
337 } 337 }
338 if ((Math.Abs(otherRegion.RegionLocX - RegionInfo.RegionLocX) <= 1) && 338 // If these are cast to INT because long + negative values + abs returns invalid data
339 (Math.Abs(otherRegion.RegionLocY - RegionInfo.RegionLocY) <= 1)) 339
340 int resultX = Math.Abs((int)otherRegion.RegionLocX - (int)RegionInfo.RegionLocX);
341 int resultY = Math.Abs((int)otherRegion.RegionLocY - (int)RegionInfo.RegionLocY);
342 if ((resultX <= 1) &&
343 ( resultY <= 1))
340 { 344 {
341 try 345 try
342 { 346 {