aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Config/SimConfig/Db4SimConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config/SimConfig/Db4SimConfig.cs')
-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!!!");