From 0879e6427ecc01a888b33357059369ac9101f0c9 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 6 Apr 2007 19:25:29 +0000 Subject: compiles and works just weird terrain problem (and terrain saving is currently not functional) --- OpenSim.RegionServer/world/World.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim.RegionServer') 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 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs - creating LandMap"); TerrainManager = new TerrainManager(new SecondLife()); + Terrain = new TerrainEngine(); Avatar.SetupTemplate("avatar-template.dat"); // MainConsole.Instance.WriteLine("World.cs - Creating script engine instance"); // Initialise this only after the world has loaded @@ -251,7 +252,16 @@ namespace OpenSim.world public void LoadWorldMap() { - Terrain.map = this.localStorage.LoadWorld(); + float[,] map = this.localStorage.LoadWorld(); + if (map == null) + { + this.Terrain.hills(); + //this.localStorage.SaveMap(this.Terrain.map); + } + else + { + this.Terrain.map = map; + } } public void LoadPrimsFromStorage() -- cgit v1.1