TEMP: commented out agent limits in scene as a workaround for DSG demos

dsg
Dan Lake 2011-06-01 10:01:04 -07:00
parent b3efab2bbd
commit 3a582a4cec
1 changed files with 8 additions and 4 deletions

View File

@ -4357,11 +4357,13 @@ namespace OpenSim.Region.Framework.Scenes
int num = m_sceneGraph.GetNumberOfScenePresences(); int num = m_sceneGraph.GetNumberOfScenePresences();
if (num >= RegionInfo.RegionSettings.AgentLimit) // TEMP WORKAROUND for DSG DEMO
// REGION SYNC
/*if (num >= RegionInfo.RegionSettings.AgentLimit)
{ {
if (!Permissions.IsAdministrator(cAgentData.AgentID)) if (!Permissions.IsAdministrator(cAgentData.AgentID))
return false; return false;
} }*/
ScenePresence childAgentUpdate = WaitGetScenePresence(cAgentData.AgentID); ScenePresence childAgentUpdate = WaitGetScenePresence(cAgentData.AgentID);
@ -5729,14 +5731,16 @@ namespace OpenSim.Region.Framework.Scenes
{ {
int num = m_sceneGraph.GetNumberOfScenePresences(); int num = m_sceneGraph.GetNumberOfScenePresences();
if (num >= RegionInfo.RegionSettings.AgentLimit) // TEMP WORKAROUND for DSG DEMO
// REGION SYNC
/*if (num >= RegionInfo.RegionSettings.AgentLimit)
{ {
if (!Permissions.IsAdministrator(agentID)) if (!Permissions.IsAdministrator(agentID))
{ {
reason = "The region is full"; reason = "The region is full";
return false; return false;
} }
} }*/
reason = String.Empty; reason = String.Empty;
return true; return true;