diff options
author | meta7 | 2010-08-11 13:40:31 -0700 |
---|---|---|
committer | meta7 | 2010-08-11 13:40:31 -0700 |
commit | ac581b532ef7ffe4918937c2771a8b0dee400074 (patch) | |
tree | 380fef1454b090919a7b5a6053a989eccb4e006b /OpenSim/Region | |
parent | Fix Omega getting overwritten on startup. (diff) | |
parent | Log the state of the prejump flag (diff) | |
download | opensim-SC_OLD-ac581b532ef7ffe4918937c2771a8b0dee400074.zip opensim-SC_OLD-ac581b532ef7ffe4918937c2771a8b0dee400074.tar.gz opensim-SC_OLD-ac581b532ef7ffe4918937c2771a8b0dee400074.tar.bz2 opensim-SC_OLD-ac581b532ef7ffe4918937c2771a8b0dee400074.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 2 |
3 files changed, 16 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 800de8a..48465d9 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -787,7 +787,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
787 | reply.ChatData.OwnerID = fromAgentID; | 787 | reply.ChatData.OwnerID = fromAgentID; |
788 | reply.ChatData.SourceID = fromAgentID; | 788 | reply.ChatData.SourceID = fromAgentID; |
789 | 789 | ||
790 | OutPacket(reply, ThrottleOutPacketType.Task); | 790 | OutPacket(reply, ThrottleOutPacketType.Unknown); |
791 | } | 791 | } |
792 | 792 | ||
793 | /// <summary> | 793 | /// <summary> |
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index c6a1614..27e492b 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -29,6 +29,7 @@ using System.Collections.Generic; | |||
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Security; | 31 | using System.Security; |
32 | using System.Timers; | ||
32 | using log4net; | 33 | using log4net; |
33 | using Nini.Config; | 34 | using Nini.Config; |
34 | using OpenMetaverse; | 35 | using OpenMetaverse; |
@@ -45,6 +46,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
45 | private delegate void LookupUUIDS(List<UUID> uuidLst); | 46 | private delegate void LookupUUIDS(List<UUID> uuidLst); |
46 | 47 | ||
47 | private Scene m_scene; | 48 | private Scene m_scene; |
49 | private Timer m_regionChangeTimer = new Timer(); | ||
48 | 50 | ||
49 | private EstateTerrainXferHandler TerrainUploader; | 51 | private EstateTerrainXferHandler TerrainUploader; |
50 | 52 | ||
@@ -898,6 +900,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
898 | m_scene.RegisterModuleInterface<IEstateModule>(this); | 900 | m_scene.RegisterModuleInterface<IEstateModule>(this); |
899 | m_scene.EventManager.OnNewClient += EventManager_OnNewClient; | 901 | m_scene.EventManager.OnNewClient += EventManager_OnNewClient; |
900 | m_scene.EventManager.OnRequestChangeWaterHeight += changeWaterHeight; | 902 | m_scene.EventManager.OnRequestChangeWaterHeight += changeWaterHeight; |
903 | m_regionChangeTimer.AutoReset = false; | ||
904 | m_regionChangeTimer.Interval = 2000; | ||
905 | m_regionChangeTimer.Elapsed += RaiseRegionInfoChange; | ||
901 | 906 | ||
902 | m_scene.AddCommand(this, "set terrain texture", | 907 | m_scene.AddCommand(this, "set terrain texture", |
903 | "set terrain texture <number> <uuid> [<x>] [<y>]", | 908 | "set terrain texture <number> <uuid> [<x>] [<y>]", |
@@ -949,8 +954,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
949 | break; | 954 | break; |
950 | } | 955 | } |
951 | m_scene.RegionInfo.RegionSettings.Save(); | 956 | m_scene.RegionInfo.RegionSettings.Save(); |
952 | //TriggerRegionInfoChange(); | 957 | TriggerRegionInfoChange(); |
953 | TriggerEstateInfoChange(); | ||
954 | sendRegionInfoPacketToAll(); | 958 | sendRegionInfoPacketToAll(); |
955 | 959 | ||
956 | } | 960 | } |
@@ -996,8 +1000,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
996 | break; | 1000 | break; |
997 | } | 1001 | } |
998 | m_scene.RegionInfo.RegionSettings.Save(); | 1002 | m_scene.RegionInfo.RegionSettings.Save(); |
999 | //TriggerRegionInfoChange(); | 1003 | TriggerRegionInfoChange(); |
1000 | TriggerEstateInfoChange(); | ||
1001 | sendRegionHandshakeToAll(); | 1004 | sendRegionHandshakeToAll(); |
1002 | } | 1005 | } |
1003 | } | 1006 | } |
@@ -1170,6 +1173,12 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
1170 | 1173 | ||
1171 | protected void TriggerRegionInfoChange() | 1174 | protected void TriggerRegionInfoChange() |
1172 | { | 1175 | { |
1176 | m_regionChangeTimer.Stop(); | ||
1177 | m_regionChangeTimer.Start(); | ||
1178 | } | ||
1179 | |||
1180 | protected void RaiseRegionInfoChange(object sender, ElapsedEventArgs e) | ||
1181 | { | ||
1173 | ChangeDelegate change = OnRegionInfoChange; | 1182 | ChangeDelegate change = OnRegionInfoChange; |
1174 | 1183 | ||
1175 | if (change != null) | 1184 | if (change != null) |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 7e83634..7a97669 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -728,6 +728,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
728 | // TODO: Change default to true once the feature is supported | 728 | // TODO: Change default to true once the feature is supported |
729 | m_usePreJump = startupConfig.GetBoolean("enableprejump", true); | 729 | m_usePreJump = startupConfig.GetBoolean("enableprejump", true); |
730 | m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys); | 730 | m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys); |
731 | |||
732 | m_log.DebugFormat("[SCENE]: prejump is {0}", m_usePreJump ? "ON" : "OFF"); | ||
731 | if (RegionInfo.NonphysPrimMax > 0) | 733 | if (RegionInfo.NonphysPrimMax > 0) |
732 | { | 734 | { |
733 | m_maxNonphys = RegionInfo.NonphysPrimMax; | 735 | m_maxNonphys = RegionInfo.NonphysPrimMax; |