diff options
author | UbitUmarov | 2015-09-06 16:36:30 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-06 16:36:30 +0100 |
commit | 3a0137cb45f87f19946dbfb531266539a881d56c (patch) | |
tree | 787724790b0014104721826734037a8aebb52c6e | |
parent | add missing stub for llSetVelocity (diff) | |
download | opensim-SC_OLD-3a0137cb45f87f19946dbfb531266539a881d56c.zip opensim-SC_OLD-3a0137cb45f87f19946dbfb531266539a881d56c.tar.gz opensim-SC_OLD-3a0137cb45f87f19946dbfb531266539a881d56c.tar.bz2 opensim-SC_OLD-3a0137cb45f87f19946dbfb531266539a881d56c.tar.xz |
fix odd drawdistance control initialization
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index c5c2147..52e03b2 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -274,17 +274,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
274 | protected float m_defaultDrawDistance = 255f; | 274 | protected float m_defaultDrawDistance = 255f; |
275 | public float DefaultDrawDistance | 275 | public float DefaultDrawDistance |
276 | { | 276 | { |
277 | // get { return m_defaultDrawDistance; } | 277 | get { return m_defaultDrawDistance; } |
278 | get | ||
279 | { | ||
280 | if (RegionInfo != null) | ||
281 | { | ||
282 | float largestDimension = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY); | ||
283 | m_defaultDrawDistance = Math.Max(m_defaultDrawDistance, largestDimension); | ||
284 | |||
285 | } | ||
286 | return m_defaultDrawDistance; | ||
287 | } | ||
288 | } | 278 | } |
289 | 279 | ||
290 | protected float m_maxDrawDistance = 512.0f; | 280 | protected float m_maxDrawDistance = 512.0f; |
@@ -981,7 +971,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
981 | StartDisabled = startupConfig.GetBoolean("StartDisabled", false); | 971 | StartDisabled = startupConfig.GetBoolean("StartDisabled", false); |
982 | 972 | ||
983 | m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance", m_defaultDrawDistance); | 973 | m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance", m_defaultDrawDistance); |
984 | m_defaultDrawDistance = startupConfig.GetFloat("MaxDrawDistance", m_maxDrawDistance); | 974 | m_maxDrawDistance = startupConfig.GetFloat("MaxDrawDistance", m_maxDrawDistance); |
975 | |||
976 | if (m_defaultDrawDistance > m_maxDrawDistance) | ||
977 | m_defaultDrawDistance = m_maxDrawDistance; | ||
978 | |||
985 | UseBackup = startupConfig.GetBoolean("UseSceneBackup", UseBackup); | 979 | UseBackup = startupConfig.GetBoolean("UseSceneBackup", UseBackup); |
986 | if (!UseBackup) | 980 | if (!UseBackup) |
987 | m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName); | 981 | m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName); |