From d2b049b7ad7c32f0cecef35cc828afdb5e24c353 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 24 Oct 2014 18:32:24 +0100 Subject: check new region size on added code for varsize till its fully suported --- .../CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index b855233..e3f101e 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -1560,6 +1560,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer float newRegionSizeX = neighbourRegion.RegionSizeX; float newRegionSizeY = neighbourRegion.RegionSizeY; + if (newRegionSizeX == 0) + newRegionSizeX = 256f; + if (newRegionSizeY == 0) + newRegionSizeY = 256f; if (pos.X < boundaryDistance) newpos.X += newRegionSizeX; -- cgit v1.1