diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 9e2f52c..eb34f55 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -227,6 +227,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
227 | get { return m_defaultDrawDistance; } | 227 | get { return m_defaultDrawDistance; } |
228 | } | 228 | } |
229 | 229 | ||
230 | // protected float m_maxDrawDistance = 512.0f; | ||
231 | protected float m_maxDrawDistance = 256.0f; | ||
232 | public float MaxDrawDistance | ||
233 | { | ||
234 | get { return m_maxDrawDistance; } | ||
235 | } | ||
236 | |||
230 | private List<string> m_AllowedViewers = new List<string>(); | 237 | private List<string> m_AllowedViewers = new List<string>(); |
231 | private List<string> m_BannedViewers = new List<string>(); | 238 | private List<string> m_BannedViewers = new List<string>(); |
232 | 239 | ||
@@ -862,7 +869,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
862 | 869 | ||
863 | StartDisabled = startupConfig.GetBoolean("StartDisabled", false); | 870 | StartDisabled = startupConfig.GetBoolean("StartDisabled", false); |
864 | 871 | ||
865 | m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance); | 872 | m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance", m_defaultDrawDistance); |
873 | m_defaultDrawDistance = startupConfig.GetFloat("MaxDrawDistance", m_maxDrawDistance); | ||
866 | UseBackup = startupConfig.GetBoolean("UseSceneBackup", UseBackup); | 874 | UseBackup = startupConfig.GetBoolean("UseSceneBackup", UseBackup); |
867 | if (!UseBackup) | 875 | if (!UseBackup) |
868 | m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName); | 876 | m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName); |
@@ -1069,7 +1077,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1069 | 1077 | ||
1070 | BordersLocked = true; | 1078 | BordersLocked = true; |
1071 | Border northBorder = new Border(); | 1079 | Border northBorder = new Border(); |
1072 | northBorder.BorderLine = new Vector3(float.MinValue, float.MaxValue, (int)Constants.RegionSize); //<--- | 1080 | northBorder.BorderLine = new Vector3(float.MinValue, float.MaxValue, RegionInfo.RegionSizeY); //<--- |
1073 | northBorder.CrossDirection = Cardinals.N; | 1081 | northBorder.CrossDirection = Cardinals.N; |
1074 | NorthBorders.Add(northBorder); | 1082 | NorthBorders.Add(northBorder); |
1075 | 1083 | ||
@@ -1079,7 +1087,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1079 | SouthBorders.Add(southBorder); | 1087 | SouthBorders.Add(southBorder); |
1080 | 1088 | ||
1081 | Border eastBorder = new Border(); | 1089 | Border eastBorder = new Border(); |
1082 | eastBorder.BorderLine = new Vector3(float.MinValue, float.MaxValue, (int)Constants.RegionSize); //<--- | 1090 | eastBorder.BorderLine = new Vector3(float.MinValue, float.MaxValue, RegionInfo.RegionSizeX); //<--- |
1083 | eastBorder.CrossDirection = Cardinals.E; | 1091 | eastBorder.CrossDirection = Cardinals.E; |
1084 | EastBorders.Add(eastBorder); | 1092 | EastBorders.Add(eastBorder); |
1085 | 1093 | ||
@@ -1092,6 +1100,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1092 | m_eventManager = new EventManager(); | 1100 | m_eventManager = new EventManager(); |
1093 | 1101 | ||
1094 | m_permissions = new ScenePermissions(this); | 1102 | m_permissions = new ScenePermissions(this); |
1103 | |||
1095 | } | 1104 | } |
1096 | 1105 | ||
1097 | #endregion | 1106 | #endregion |