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.
user_profiles
Justin Clark-Casey (justincc) 2013-03-28 01:54:11 +00:00
parent 617637c788
commit 506d5e41bf
1 changed files with 2 additions and 2 deletions

View File

@ -1901,8 +1901,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
} }
// Loss of fraction on purpose // Loss of fraction on purpose
extent.X = ((int)extent.X / (int)Constants.RegionSize) + 1; extent.X = ((int)extent.X / (int)Constants.RegionSize);
extent.Y = ((int)extent.Y / (int)Constants.RegionSize) + 1; extent.Y = ((int)extent.Y / (int)Constants.RegionSize);
swCorner.X = Scene.RegionInfo.RegionLocX - 1; swCorner.X = Scene.RegionInfo.RegionLocX - 1;
swCorner.Y = Scene.RegionInfo.RegionLocY - 1; swCorner.Y = Scene.RegionInfo.RegionLocY - 1;