diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
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 | } |