check new region size on added code for varsize till its fully suported

avinationmerge
UbitUmarov 2014-10-24 18:32:24 +01:00
parent 4571e5bc3e
commit d2b049b7ad
1 changed files with 4 additions and 0 deletions

View File

@ -1560,6 +1560,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
float newRegionSizeX = neighbourRegion.RegionSizeX; float newRegionSizeX = neighbourRegion.RegionSizeX;
float newRegionSizeY = neighbourRegion.RegionSizeY; float newRegionSizeY = neighbourRegion.RegionSizeY;
if (newRegionSizeX == 0)
newRegionSizeX = 256f;
if (newRegionSizeY == 0)
newRegionSizeY = 256f;
if (pos.X < boundaryDistance) if (pos.X < boundaryDistance)
newpos.X += newRegionSizeX; newpos.X += newRegionSizeX;