* Fix an off by one error on visible neighbors in the 'RequestNeighbors' method. This off by one error showed one extra row of neighbors on the north and east side

remotes/origin/0.6.7-post-fixes
Teravus Ovares (Dan Olivares) 2009-09-10 03:25:55 -04:00
parent 656de67d85
commit 1c878ec425
1 changed files with 2 additions and 2 deletions

View File

@ -443,8 +443,8 @@ namespace OpenSim.Region.Framework.Scenes
int startX = (int) pRegionLocX - 1;
int startY = (int) pRegionLocY - 1;
int endX = (int) pRegionLocX + (int)extent.X + 1;
int endY = (int) pRegionLocY + (int)extent.Y + 1;
int endX = (int) pRegionLocX + (int)extent.X;
int endY = (int) pRegionLocY + (int)extent.Y;
for (int i=startX;i<endX;i++)
{