diff options
author | MW | 2007-04-06 19:25:29 +0000 |
---|---|---|
committer | MW | 2007-04-06 19:25:29 +0000 |
commit | 0879e6427ecc01a888b33357059369ac9101f0c9 (patch) | |
tree | 2a16b5857e771203ee112338eb7755644fa127f1 /OpenSim.RegionServer | |
parent | Now back to compiling, just no terrain generation at the moment (diff) | |
download | opensim-SC_OLD-0879e6427ecc01a888b33357059369ac9101f0c9.zip opensim-SC_OLD-0879e6427ecc01a888b33357059369ac9101f0c9.tar.gz opensim-SC_OLD-0879e6427ecc01a888b33357059369ac9101f0c9.tar.bz2 opensim-SC_OLD-0879e6427ecc01a888b33357059369ac9101f0c9.tar.xz |
compiles and works just weird terrain problem (and terrain saving is currently not functional)
Diffstat (limited to 'OpenSim.RegionServer')
-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() |