diff options
author | UbitUmarov | 2015-09-07 07:50:51 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-07 07:50:51 +0100 |
commit | 3a8e76cdd1075fa5d7c22050484f00ed4c63bddf (patch) | |
tree | 3f8cf8928ee1660f9cc7258e85ccc00ca9448810 | |
parent | add lost admin_reset_land method (diff) | |
download | opensim-SC-3a8e76cdd1075fa5d7c22050484f00ed4c63bddf.zip opensim-SC-3a8e76cdd1075fa5d7c22050484f00ed4c63bddf.tar.gz opensim-SC-3a8e76cdd1075fa5d7c22050484f00ed4c63bddf.tar.bz2 opensim-SC-3a8e76cdd1075fa5d7c22050484f00ed4c63bddf.tar.xz |
restore terrain modifiers, left out earlier bc of merge errors, (untested)
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModifier.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 21 |
2 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModifier.cs index 7ebd08e..c6e992f 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModifier.cs | |||
@@ -370,9 +370,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
370 | } | 370 | } |
371 | return mask; | 371 | return mask; |
372 | } | 372 | } |
373 | |||
374 | |||
375 | } | 373 | } |
376 | |||
377 | } | 374 | } |
378 | 375 | ||
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index 22723fc..e3a0825 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.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.Net; | 31 | using System.Net; |
32 | using System.Threading; | ||
32 | 33 | ||
33 | using log4net; | 34 | using log4net; |
34 | using Nini.Config; | 35 | using Nini.Config; |
@@ -36,7 +37,6 @@ using Nini.Config; | |||
36 | using OpenMetaverse; | 37 | using OpenMetaverse; |
37 | using Mono.Addins; | 38 | using Mono.Addins; |
38 | 39 | ||
39 | using OpenSim.Data; | ||
40 | using OpenSim.Framework; | 40 | using OpenSim.Framework; |
41 | using OpenSim.Framework.Console; | 41 | using OpenSim.Framework.Console; |
42 | using OpenSim.Region.CoreModules.Framework.InterfaceCommander; | 42 | using OpenSim.Region.CoreModules.Framework.InterfaceCommander; |
@@ -86,7 +86,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
86 | private readonly Dictionary<string, ITerrainLoader> m_loaders = new Dictionary<string, ITerrainLoader>(); | 86 | private readonly Dictionary<string, ITerrainLoader> m_loaders = new Dictionary<string, ITerrainLoader>(); |
87 | private readonly Dictionary<StandardTerrainEffects, ITerrainPaintableEffect> m_painteffects = | 87 | private readonly Dictionary<StandardTerrainEffects, ITerrainPaintableEffect> m_painteffects = |
88 | new Dictionary<StandardTerrainEffects, ITerrainPaintableEffect>(); | 88 | new Dictionary<StandardTerrainEffects, ITerrainPaintableEffect>(); |
89 | 89 | private Dictionary<string, ITerrainModifier> m_modifyOperations = | |
90 | new Dictionary<string, ITerrainModifier>(); | ||
90 | private Dictionary<string, ITerrainEffect> m_plugineffects; | 91 | private Dictionary<string, ITerrainEffect> m_plugineffects; |
91 | private ITerrainChannel m_channel; | 92 | private ITerrainChannel m_channel; |
92 | private ITerrainChannel m_baked; | 93 | private ITerrainChannel m_baked; |
@@ -643,7 +644,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
643 | m_floodeffects[StandardTerrainEffects.Revert] = new RevertArea(m_baked); | 644 | m_floodeffects[StandardTerrainEffects.Revert] = new RevertArea(m_baked); |
644 | 645 | ||
645 | // Terrain Modifier operations | 646 | // Terrain Modifier operations |
646 | /* | 647 | |
647 | m_modifyOperations["min"] = new MinModifier(this); | 648 | m_modifyOperations["min"] = new MinModifier(this); |
648 | m_modifyOperations["max"] = new MaxModifier(this); | 649 | m_modifyOperations["max"] = new MaxModifier(this); |
649 | m_modifyOperations["raise"] = new RaiseModifier(this); | 650 | m_modifyOperations["raise"] = new RaiseModifier(this); |
@@ -651,7 +652,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
651 | m_modifyOperations["fill"] = new FillModifier(this); | 652 | m_modifyOperations["fill"] = new FillModifier(this); |
652 | m_modifyOperations["smooth"] = new SmoothModifier(this); | 653 | m_modifyOperations["smooth"] = new SmoothModifier(this); |
653 | m_modifyOperations["noise"] = new NoiseModifier(this); | 654 | m_modifyOperations["noise"] = new NoiseModifier(this); |
654 | */ | 655 | |
655 | // Filesystem load/save loaders | 656 | // Filesystem load/save loaders |
656 | m_loaders[".r32"] = new RAW32(); | 657 | m_loaders[".r32"] = new RAW32(); |
657 | m_loaders[".f32"] = m_loaders[".r32"]; | 658 | m_loaders[".f32"] = m_loaders[".r32"]; |
@@ -992,12 +993,16 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
992 | { | 993 | { |
993 | foreach (PatchUpdates pups in m_perClientPatchUpdates.Values) | 994 | foreach (PatchUpdates pups in m_perClientPatchUpdates.Values) |
994 | { | 995 | { |
996 | if (!Monitor.TryEnter(pups)) | ||
997 | continue; | ||
998 | |||
995 | // throught acording to land queue free to send bytes | 999 | // throught acording to land queue free to send bytes |
996 | if (!pups.Presence.ControllingClient.CanSendLayerData()) | 1000 | if (!pups.Presence.ControllingClient.CanSendLayerData()) |
997 | continue; | 1001 | continue; |
998 | 1002 | ||
999 | if (pups.HasUpdates()) | 1003 | if (pups.HasUpdates()) |
1000 | { | 1004 | { |
1005 | |||
1001 | // There is something that could be sent to this client. | 1006 | // There is something that could be sent to this client. |
1002 | List<PatchesToSend> toSend = GetModifiedPatchesInViewDistance(pups); | 1007 | List<PatchesToSend> toSend = GetModifiedPatchesInViewDistance(pups); |
1003 | if (toSend.Count > 0) | 1008 | if (toSend.Count > 0) |
@@ -1026,6 +1031,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1026 | pups.Presence.ControllingClient.SendLayerData(-toSend.Count, 0, patchPieces); | 1031 | pups.Presence.ControllingClient.SendLayerData(-toSend.Count, 0, patchPieces); |
1027 | } | 1032 | } |
1028 | } | 1033 | } |
1034 | Monitor.Exit(pups); | ||
1029 | } | 1035 | } |
1030 | } | 1036 | } |
1031 | } | 1037 | } |
@@ -1099,7 +1105,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1099 | int distsq; | 1105 | int distsq; |
1100 | 1106 | ||
1101 | DrawDistance *= DrawDistance; | 1107 | DrawDistance *= DrawDistance; |
1102 | 1108 | ||
1103 | for (int x = startX; x < endX; x++) | 1109 | for (int x = startX; x < endX; x++) |
1104 | { | 1110 | { |
1105 | for (int y = startY; y < endY; y++) | 1111 | for (int y = startY; y < endY; y++) |
@@ -1123,7 +1129,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1123 | } | 1129 | } |
1124 | } | 1130 | } |
1125 | return ret; | 1131 | return ret; |
1126 | } | 1132 | } |
1127 | 1133 | ||
1128 | private void client_OnModifyTerrain(UUID user, float height, float seconds, byte size, byte action, | 1134 | private void client_OnModifyTerrain(UUID user, float height, float seconds, byte size, byte action, |
1129 | float north, float west, float south, float east, UUID agentId) | 1135 | float north, float west, float south, float east, UUID agentId) |
@@ -1414,7 +1420,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1414 | } | 1420 | } |
1415 | 1421 | ||
1416 | } | 1422 | } |
1417 | |||
1418 | } | 1423 | } |
1419 | 1424 | ||
1420 | private void InterfaceElevateTerrain(Object[] args) | 1425 | private void InterfaceElevateTerrain(Object[] args) |
@@ -1707,7 +1712,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1707 | 1712 | ||
1708 | public void ModifyCommand(string module, string[] cmd) | 1713 | public void ModifyCommand(string module, string[] cmd) |
1709 | { | 1714 | { |
1710 | /* | ||
1711 | string result; | 1715 | string result; |
1712 | Scene scene = SceneManager.Instance.CurrentScene; | 1716 | Scene scene = SceneManager.Instance.CurrentScene; |
1713 | if ((scene != null) && (scene != m_scene)) | 1717 | if ((scene != null) && (scene != m_scene)) |
@@ -1747,7 +1751,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1747 | { | 1751 | { |
1748 | MainConsole.Instance.Output(result); | 1752 | MainConsole.Instance.Output(result); |
1749 | } | 1753 | } |
1750 | */ | ||
1751 | } | 1754 | } |
1752 | 1755 | ||
1753 | #endregion | 1756 | #endregion |