aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRobert Adams2014-02-23 21:56:37 -0800
committerRobert Adams2014-02-23 21:56:37 -0800
commit0f03c64a0c2f5b7fd5bc38d86e2492f4acebc924 (patch)
tree44a14f5954af15b823997f7c196841353f6bddbc
parentupdate libomv to 59280cfe3e96714151158f4ec7b167af57f60e93 (current head) to h... (diff)
downloadopensim-SC_OLD-0f03c64a0c2f5b7fd5bc38d86e2492f4acebc924.zip
opensim-SC_OLD-0f03c64a0c2f5b7fd5bc38d86e2492f4acebc924.tar.gz
opensim-SC_OLD-0f03c64a0c2f5b7fd5bc38d86e2492f4acebc924.tar.bz2
opensim-SC_OLD-0f03c64a0c2f5b7fd5bc38d86e2492f4acebc924.tar.xz
Make Scene.DefaultDrawDistance to be the max of the region size and the
user setting. Seems this parameter has many side effects.
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 676c000..f7fd767 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -217,7 +217,9 @@ namespace OpenSim.Region.Framework.Scenes
217 get { 217 get {
218 if (RegionInfo != null) 218 if (RegionInfo != null)
219 { 219 {
220 m_defaultDrawDistance = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY); 220 float largestDimension = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY);
221 m_defaultDrawDistance = Math.Max(m_defaultDrawDistance, largestDimension);
222
221 } 223 }
222 return m_defaultDrawDistance; 224 return m_defaultDrawDistance;
223 } 225 }