aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs25
1 files changed, 17 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 05c5fca..cec17e2 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -551,11 +551,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
551 m_plugineffects = new Dictionary<string, ITerrainEffect>(); 551 m_plugineffects = new Dictionary<string, ITerrainEffect>();
552 LoadPlugins(Assembly.GetCallingAssembly()); 552 LoadPlugins(Assembly.GetCallingAssembly());
553 string plugineffectsPath = "Terrain"; 553 string plugineffectsPath = "Terrain";
554 554
555 // Load the files in the Terrain/ dir 555 // Load the files in the Terrain/ dir
556 if (!Directory.Exists(plugineffectsPath)) 556 if (!Directory.Exists(plugineffectsPath))
557 return; 557 return;
558 558
559 string[] files = Directory.GetFiles(plugineffectsPath); 559 string[] files = Directory.GetFiles(plugineffectsPath);
560 foreach(string file in files) 560 foreach(string file in files)
561 { 561 {
@@ -768,7 +768,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
768 fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1, 768 fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1,
769 m_scene.RegionInfo.RegionName, filename); 769 m_scene.RegionInfo.RegionName, filename);
770 } 770 }
771 771
772 return; 772 return;
773 } 773 }
774 } 774 }
@@ -865,7 +865,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
865 client.OnLandUndo += client_OnLandUndo; 865 client.OnLandUndo += client_OnLandUndo;
866 client.OnUnackedTerrain += client_OnUnackedTerrain; 866 client.OnUnackedTerrain += client_OnUnackedTerrain;
867 } 867 }
868 868
869 /// <summary> 869 /// <summary>
870 /// Installs terrain brush hook to IClientAPI 870 /// Installs terrain brush hook to IClientAPI
871 /// </summary> 871 /// </summary>
@@ -884,7 +884,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
884 lock(m_perClientPatchUpdates) 884 lock(m_perClientPatchUpdates)
885 m_perClientPatchUpdates.Remove(client); 885 m_perClientPatchUpdates.Remove(client);
886 } 886 }
887 887
888 /// <summary> 888 /// <summary>
889 /// Scan over changes in the terrain and limit height changes. This enforces the 889 /// Scan over changes in the terrain and limit height changes. This enforces the
890 /// non-estate owner limits on rate of terrain editting. 890 /// non-estate owner limits on rate of terrain editting.
@@ -1225,7 +1225,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1225 InterfaceBakeTerrain(null); //bake terrain does not use the passed in parameter 1225 InterfaceBakeTerrain(null); //bake terrain does not use the passed in parameter
1226 } 1226 }
1227 } 1227 }
1228 1228
1229 protected void client_OnUnackedTerrain(IClientAPI client, int patchX, int patchY) 1229 protected void client_OnUnackedTerrain(IClientAPI client, int patchX, int patchY)
1230 { 1230 {
1231 //m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY); 1231 //m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY);
@@ -1676,10 +1676,16 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1676 public void ModifyCommand(string module, string[] cmd) 1676 public void ModifyCommand(string module, string[] cmd)
1677 { 1677 {
1678 string result; 1678 string result;
1679 if (cmd.Length > 2) 1679 Scene scene = SceneManager.Instance.CurrentScene;
1680 if ((scene != null) && (scene != m_scene))
1681 {
1682 result = String.Empty;
1683 }
1684 else if (cmd.Length > 2)
1680 { 1685 {
1681 string operationType = cmd[2]; 1686 string operationType = cmd[2];
1682 1687
1688
1683 ITerrainModifier operation; 1689 ITerrainModifier operation;
1684 if (!m_modifyOperations.TryGetValue(operationType, out operation)) 1690 if (!m_modifyOperations.TryGetValue(operationType, out operation))
1685 { 1691 {
@@ -1704,7 +1710,10 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1704 { 1710 {
1705 result = "Usage: <operation-name> <arg1> <arg2>..."; 1711 result = "Usage: <operation-name> <arg1> <arg2>...";
1706 } 1712 }
1707 MainConsole.Instance.Output(result); 1713 if (result != String.Empty)
1714 {
1715 MainConsole.Instance.Output(result);
1716 }
1708 } 1717 }
1709 1718
1710#endregion 1719#endregion