From e4a78a9b309dc4d9c6a3f4367c61d813c2ca2f6a Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 21 Sep 2007 05:04:59 +0000 Subject: * Removed unused RegenerateTerrain functions --- OpenSim/Region/Environment/Scenes/Scene.cs | 54 ------------------------------ 1 file changed, 54 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index d12598b..1e19c30 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -383,60 +383,6 @@ namespace OpenSim.Region.Environment.Scenes #endregion - #region Regenerate Terrain - - /// - /// Rebuilds the terrain using a procedural algorithm - /// - public void RegenerateTerrain() - { - try - { - Terrain.HillsGenerator(); - - lock (m_syncRoot) - { - phyScene.SetTerrain(Terrain.GetHeights1D()); - } - - storageManager.DataStore.StoreTerrain(Terrain.GetHeights2DD()); - - Broadcast(delegate(IClientAPI client ) { SendLayerData( client ); }); - - - } - catch (Exception e) - { - MainLog.Instance.Error("terrain", "Failed with exception " + e.ToString()); - } - } - - /// - /// Rebuilds the terrain using a 2D float array - /// - /// 256,256 float array containing heights - public void RegenerateTerrain(float[,] newMap) - { - try - { - Terrain.SetHeights2D(newMap); - lock (m_syncRoot) - { - phyScene.SetTerrain(Terrain.GetHeights1D()); - } - storageManager.DataStore.StoreTerrain(Terrain.GetHeights2DD()); - - ForEachScenePresence(delegate(ScenePresence presence) { SendLayerData(presence.ControllingClient); }); - - } - catch (Exception e) - { - MainLog.Instance.Warn("terrain", "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString()); - } - } - - #endregion - #region Load Terrain /// -- cgit v1.1