Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
commit
ac581b532e
|
@ -787,7 +787,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
reply.ChatData.OwnerID = fromAgentID;
|
reply.ChatData.OwnerID = fromAgentID;
|
||||||
reply.ChatData.SourceID = fromAgentID;
|
reply.ChatData.SourceID = fromAgentID;
|
||||||
|
|
||||||
OutPacket(reply, ThrottleOutPacketType.Task);
|
OutPacket(reply, ThrottleOutPacketType.Unknown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -29,6 +29,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
using System.Timers;
|
||||||
using log4net;
|
using log4net;
|
||||||
using Nini.Config;
|
using Nini.Config;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
@ -45,6 +46,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
private delegate void LookupUUIDS(List<UUID> uuidLst);
|
private delegate void LookupUUIDS(List<UUID> uuidLst);
|
||||||
|
|
||||||
private Scene m_scene;
|
private Scene m_scene;
|
||||||
|
private Timer m_regionChangeTimer = new Timer();
|
||||||
|
|
||||||
private EstateTerrainXferHandler TerrainUploader;
|
private EstateTerrainXferHandler TerrainUploader;
|
||||||
|
|
||||||
|
@ -898,6 +900,9 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
m_scene.RegisterModuleInterface<IEstateModule>(this);
|
m_scene.RegisterModuleInterface<IEstateModule>(this);
|
||||||
m_scene.EventManager.OnNewClient += EventManager_OnNewClient;
|
m_scene.EventManager.OnNewClient += EventManager_OnNewClient;
|
||||||
m_scene.EventManager.OnRequestChangeWaterHeight += changeWaterHeight;
|
m_scene.EventManager.OnRequestChangeWaterHeight += changeWaterHeight;
|
||||||
|
m_regionChangeTimer.AutoReset = false;
|
||||||
|
m_regionChangeTimer.Interval = 2000;
|
||||||
|
m_regionChangeTimer.Elapsed += RaiseRegionInfoChange;
|
||||||
|
|
||||||
m_scene.AddCommand(this, "set terrain texture",
|
m_scene.AddCommand(this, "set terrain texture",
|
||||||
"set terrain texture <number> <uuid> [<x>] [<y>]",
|
"set terrain texture <number> <uuid> [<x>] [<y>]",
|
||||||
|
@ -949,8 +954,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_scene.RegionInfo.RegionSettings.Save();
|
m_scene.RegionInfo.RegionSettings.Save();
|
||||||
//TriggerRegionInfoChange();
|
TriggerRegionInfoChange();
|
||||||
TriggerEstateInfoChange();
|
|
||||||
sendRegionInfoPacketToAll();
|
sendRegionInfoPacketToAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -996,8 +1000,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_scene.RegionInfo.RegionSettings.Save();
|
m_scene.RegionInfo.RegionSettings.Save();
|
||||||
//TriggerRegionInfoChange();
|
TriggerRegionInfoChange();
|
||||||
TriggerEstateInfoChange();
|
|
||||||
sendRegionHandshakeToAll();
|
sendRegionHandshakeToAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1169,6 +1172,12 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void TriggerRegionInfoChange()
|
protected void TriggerRegionInfoChange()
|
||||||
|
{
|
||||||
|
m_regionChangeTimer.Stop();
|
||||||
|
m_regionChangeTimer.Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void RaiseRegionInfoChange(object sender, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
ChangeDelegate change = OnRegionInfoChange;
|
ChangeDelegate change = OnRegionInfoChange;
|
||||||
|
|
||||||
|
|
|
@ -728,6 +728,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// TODO: Change default to true once the feature is supported
|
// TODO: Change default to true once the feature is supported
|
||||||
m_usePreJump = startupConfig.GetBoolean("enableprejump", true);
|
m_usePreJump = startupConfig.GetBoolean("enableprejump", true);
|
||||||
m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
|
m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
|
||||||
|
|
||||||
|
m_log.DebugFormat("[SCENE]: prejump is {0}", m_usePreJump ? "ON" : "OFF");
|
||||||
if (RegionInfo.NonphysPrimMax > 0)
|
if (RegionInfo.NonphysPrimMax > 0)
|
||||||
{
|
{
|
||||||
m_maxNonphys = RegionInfo.NonphysPrimMax;
|
m_maxNonphys = RegionInfo.NonphysPrimMax;
|
||||||
|
|
Loading…
Reference in New Issue