diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 03270d7..f5458c1 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1935,7 +1935,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1935 | { | 1935 | { |
1936 | try | 1936 | try |
1937 | { | 1937 | { |
1938 | double[,] map = SimulationDataService.LoadTerrain(RegionInfo.RegionID); | 1938 | TerrainData map = SimulationDataService.LoadTerrain(RegionInfo.RegionID, (int)RegionInfo.RegionSizeX, (int)RegionInfo.RegionSizeY, (int)RegionInfo.RegionSizeZ); |
1939 | if (map == null) | 1939 | if (map == null) |
1940 | { | 1940 | { |
1941 | // This should be in the Terrain module, but it isn't because | 1941 | // This should be in the Terrain module, but it isn't because |
@@ -1946,7 +1946,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1946 | m_InitialTerrain = terrainConfig.GetString("InitialTerrain", m_InitialTerrain); | 1946 | m_InitialTerrain = terrainConfig.GetString("InitialTerrain", m_InitialTerrain); |
1947 | 1947 | ||
1948 | m_log.InfoFormat("[TERRAIN]: No default terrain. Generating a new terrain {0}.", m_InitialTerrain); | 1948 | m_log.InfoFormat("[TERRAIN]: No default terrain. Generating a new terrain {0}.", m_InitialTerrain); |
1949 | Heightmap = new TerrainChannel(m_InitialTerrain); | 1949 | Heightmap = new TerrainChannel(m_InitialTerrain, (int)RegionInfo.RegionSizeX, (int)RegionInfo.RegionSizeY, (int)RegionInfo.RegionSizeZ); |
1950 | 1950 | ||
1951 | SimulationDataService.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); | 1951 | SimulationDataService.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); |
1952 | } | 1952 | } |