aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
authorRobert Adams2013-11-30 15:28:39 -0800
committerRobert Adams2013-11-30 15:28:39 -0800
commit6cd0d7a62b696d28d488f3cb82838ccf973ccfd7 (patch)
tree6b058a23eccf0eda55666abee9a3bb52c415e0ce /OpenSim/Framework/RegionInfo.cs
parentvarregion: add ITerrainChannel.GetHeightAtXYZ() for eventual mesh terrain. (diff)
downloadopensim-SC-6cd0d7a62b696d28d488f3cb82838ccf973ccfd7.zip
opensim-SC-6cd0d7a62b696d28d488f3cb82838ccf973ccfd7.tar.gz
opensim-SC-6cd0d7a62b696d28d488f3cb82838ccf973ccfd7.tar.bz2
opensim-SC-6cd0d7a62b696d28d488f3cb82838ccf973ccfd7.tar.xz
varregion: Add MaxRegionSize constant and enforce in RegionInfo.
Intermediate checkin of changing border cross computation from checking boundry limits to requests to GridService. Not totally functional.
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r--OpenSim/Framework/RegionInfo.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index cf909cd..63b3d89 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -788,7 +788,16 @@ namespace OpenSim.Framework
788 RegionSizeX = minSize; 788 RegionSizeX = minSize;
789 RegionSizeY = minSize; 789 RegionSizeY = minSize;
790 m_log.ErrorFormat("{0} Regions must be square until viewers are updated. Forcing region {1} size to <{2},{3}>", 790 m_log.ErrorFormat("{0} Regions must be square until viewers are updated. Forcing region {1} size to <{2},{3}>",
791 LogHeader, m_regionName, RegionSizeX, RegionSizeY); 791 LogHeader, m_regionName, RegionSizeX, RegionSizeY);
792 }
793
794 // There is a practical limit to region size.
795 if (RegionSizeX > Constants.MaximumRegionSize || RegionSizeY > Constants.MaximumRegionSize)
796 {
797 RegionSizeX = Util.Clamp<uint>(RegionSizeX, Constants.RegionSize, Constants.MaximumRegionSize);
798 RegionSizeY = Util.Clamp<uint>(RegionSizeY, Constants.RegionSize, Constants.MaximumRegionSize);
799 m_log.ErrorFormat("{0} Region dimensions must be less than {1}. Clamping {2}'s size to <{3},{4}>",
800 LogHeader, Constants.MaximumRegionSize, m_regionName, RegionSizeX, RegionSizeY);
792 } 801 }
793 802
794 m_log.InfoFormat("{0} Region {1} size set to <{2},{3}>", LogHeader, m_regionName, RegionSizeX, RegionSizeY); 803 m_log.InfoFormat("{0} Region {1} size set to <{2},{3}>", LogHeader, m_regionName, RegionSizeX, RegionSizeY);