aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Config/SimConfig
diff options
context:
space:
mode:
authorMW2007-03-08 18:07:53 +0000
committerMW2007-03-08 18:07:53 +0000
commitaa120266d79b87b39bf80f3f7aaca8970447bde1 (patch)
treececae22f2d8b2fc7541a011d2db86f819901c51f /src/Config/SimConfig
parentChanged water height to default of 20 (diff)
downloadopensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.zip
opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.gz
opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.bz2
opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.xz
Primitive's shape and scale are now saved into database and reloaded.
New ServerConsole command: regenerate - will regenerate the terrain of the whole sim.
Diffstat (limited to 'src/Config/SimConfig')
-rw-r--r--src/Config/SimConfig/Db4SimConfig.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Config/SimConfig/Db4SimConfig.cs b/src/Config/SimConfig/Db4SimConfig.cs
index 4a06187..fc2c019 100644
--- a/src/Config/SimConfig/Db4SimConfig.cs
+++ b/src/Config/SimConfig/Db4SimConfig.cs
@@ -128,6 +128,20 @@ namespace Db40SimConfig
128 } 128 }
129 return blank; 129 return blank;
130 } 130 }
131
132 public override void SaveMap()
133 {
134 IObjectSet world_result = db.Get(typeof(MapStorage));
135 if(world_result.Count>0) {
136 ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadWorld() - updating saved copy of heightmap in local database");
137 MapStorage map=(MapStorage)world_result.Next();
138 db.Delete(map);
139 }
140 MapStorage map1= new MapStorage();
141 map1.Map = OpenSim_Main.local_world.LandMap;
142 db.Set(map1);
143 db.Commit();
144 }
131 145
132 public override void LoadFromGrid() { 146 public override void LoadFromGrid() {
133 ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadFromGrid() - dummy function, DOING ABSOLUTELY NOTHING AT ALL!!!"); 147 ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadFromGrid() - dummy function, DOING ABSOLUTELY NOTHING AT ALL!!!");