aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index de39261..839a75a 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -352,7 +352,7 @@ namespace OpenSim.Region.Environment.Scenes
352 { 352 {
353 try 353 try
354 { 354 {
355 float[] map = this.localStorage.LoadWorld(); 355 double[,] map = this.storageManager.DataStore.LoadTerrain();
356 if (map == null) 356 if (map == null)
357 { 357 {
358 if (string.IsNullOrEmpty(this.m_regInfo.estateSettings.terrainFile)) 358 if (string.IsNullOrEmpty(this.m_regInfo.estateSettings.terrainFile))
@@ -360,7 +360,7 @@ namespace OpenSim.Region.Environment.Scenes
360 Console.WriteLine("No default terrain, procedurally generating..."); 360 Console.WriteLine("No default terrain, procedurally generating...");
361 this.Terrain.hills(); 361 this.Terrain.hills();
362 362
363 this.localStorage.SaveMap(this.Terrain.getHeights1D()); 363 this.storageManager.DataStore.StoreTerrain(this.Terrain.getHeights2DD());
364 } 364 }
365 else 365 else
366 { 366 {
@@ -374,12 +374,12 @@ namespace OpenSim.Region.Environment.Scenes
374 Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); 374 Console.WriteLine("Unable to load default terrain, procedurally generating instead...");
375 Terrain.hills(); 375 Terrain.hills();
376 } 376 }
377 this.localStorage.SaveMap(this.Terrain.getHeights1D()); 377 this.storageManager.DataStore.StoreTerrain(this.Terrain.getHeights2DD());
378 } 378 }
379 } 379 }
380 else 380 else
381 { 381 {
382 this.Terrain.setHeights1D(map); 382 this.Terrain.setHeights2D(map);
383 } 383 }
384 384
385 CreateTerrainTexture(); 385 CreateTerrainTexture();