aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-28 01:54:11 +0000
committerJustin Clark-Casey (justincc)2013-03-28 01:54:11 +0000
commit506d5e41bf3fff8acb78002e565eab96beede370 (patch)
tree74454f177d3e298fa1f97ee75fdbfe7e860286d8 /OpenSim/Region/CoreModules
parentminor: Fix usage error message for "debug eq" console command (diff)
downloadopensim-SC_OLD-506d5e41bf3fff8acb78002e565eab96beede370.zip
opensim-SC_OLD-506d5e41bf3fff8acb78002e565eab96beede370.tar.gz
opensim-SC_OLD-506d5e41bf3fff8acb78002e565eab96beede370.tar.bz2
opensim-SC_OLD-506d5e41bf3fff8acb78002e565eab96beede370.tar.xz
On the North and East sides of a megaregion, only consider regions within 256m to be neighbours rather than regions up to 512 distant.
This looks like an off-by-one bug since the view distance was already only 256 on the west and south sides. This reduces the number of child agents being logged into regions neighbouring a megaregion.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index dc6a2a0..8da76df 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -1901,8 +1901,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1901 } 1901 }
1902 1902
1903 // Loss of fraction on purpose 1903 // Loss of fraction on purpose
1904 extent.X = ((int)extent.X / (int)Constants.RegionSize) + 1; 1904 extent.X = ((int)extent.X / (int)Constants.RegionSize);
1905 extent.Y = ((int)extent.Y / (int)Constants.RegionSize) + 1; 1905 extent.Y = ((int)extent.Y / (int)Constants.RegionSize);
1906 1906
1907 swCorner.X = Scene.RegionInfo.RegionLocX - 1; 1907 swCorner.X = Scene.RegionInfo.RegionLocX - 1;
1908 swCorner.Y = Scene.RegionInfo.RegionLocY - 1; 1908 swCorner.Y = Scene.RegionInfo.RegionLocY - 1;