mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Major ass changes to terrain (now uses libTerrain-BSD!) and all-round improvements to code quality. Terrain saving/loading may work now (running through setHeights1D and getHeights1D before DB4o) **WARNING: UNTESTED**
This commit is contained in:
@@ -118,11 +118,11 @@ namespace OpenSim.Storage.LocalStorageDb4o
|
||||
}
|
||||
}
|
||||
|
||||
public float[,] LoadWorld()
|
||||
public float[] LoadWorld()
|
||||
{
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("LoadWorld() - Loading world....");
|
||||
//World blank = new World();
|
||||
float[,] heightmap = null;
|
||||
float[] heightmap = null;
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("LoadWorld() - Looking for a heightmap in local DB");
|
||||
IObjectSet world_result = db.Get(typeof(MapStorage));
|
||||
if (world_result.Count > 0)
|
||||
@@ -150,7 +150,7 @@ namespace OpenSim.Storage.LocalStorageDb4o
|
||||
return heightmap;
|
||||
}
|
||||
|
||||
public void SaveMap(float[,] heightmap)
|
||||
public void SaveMap(float[] heightmap)
|
||||
{
|
||||
IObjectSet world_result = db.Get(typeof(MapStorage));
|
||||
if (world_result.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user