diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/world/World.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/world/World.cs b/OpenSim.RegionServer/world/World.cs index 73c04d8..580804a 100644 --- a/OpenSim.RegionServer/world/World.cs +++ b/OpenSim.RegionServer/world/World.cs | |||
@@ -59,6 +59,7 @@ namespace OpenSim.world | |||
59 | 59 | ||
60 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs - creating LandMap"); | 60 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs - creating LandMap"); |
61 | TerrainManager = new TerrainManager(new SecondLife()); | 61 | TerrainManager = new TerrainManager(new SecondLife()); |
62 | Terrain = new TerrainEngine(); | ||
62 | Avatar.SetupTemplate("avatar-template.dat"); | 63 | Avatar.SetupTemplate("avatar-template.dat"); |
63 | // MainConsole.Instance.WriteLine("World.cs - Creating script engine instance"); | 64 | // MainConsole.Instance.WriteLine("World.cs - Creating script engine instance"); |
64 | // Initialise this only after the world has loaded | 65 | // Initialise this only after the world has loaded |
@@ -251,7 +252,16 @@ namespace OpenSim.world | |||
251 | 252 | ||
252 | public void LoadWorldMap() | 253 | public void LoadWorldMap() |
253 | { | 254 | { |
254 | Terrain.map = this.localStorage.LoadWorld(); | 255 | float[,] map = this.localStorage.LoadWorld(); |
256 | if (map == null) | ||
257 | { | ||
258 | this.Terrain.hills(); | ||
259 | //this.localStorage.SaveMap(this.Terrain.map); | ||
260 | } | ||
261 | else | ||
262 | { | ||
263 | this.Terrain.map = map; | ||
264 | } | ||
255 | } | 265 | } |
256 | 266 | ||
257 | public void LoadPrimsFromStorage() | 267 | public void LoadPrimsFromStorage() |