From cb55056e3bb0d34e51d8efa60cb8ef82484af900 Mon Sep 17 00:00:00 2001 From: gareth Date: Fri, 2 Mar 2007 22:17:39 +0000 Subject: Began implementing basic physics engine plugin framework --- src/Config.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/Config.cs') diff --git a/src/Config.cs b/src/Config.cs index d4a0797..f85e4d5 100644 --- a/src/Config.cs +++ b/src/Config.cs @@ -106,18 +106,19 @@ namespace OpenSim } public World LoadWorld() { - IObjectSet world_result = db.Get(typeof(OpenSim.world.World)); - if(world_result.Count==1) { + Console.WriteLine("Config.cs:LoadWorld() - Looking for a world object in local DB"); + // IObjectSet world_result = db.Get(typeof(OpenSim.world.World)); + // if(world_result.Count==1) { Console.WriteLine("Config.cs:LoadWorld() - Found an OpenSim.world.World object in local database, loading"); - return (World)world_result.Next(); - } else { + //return (World)world_result.Next(); + // } else { Console.WriteLine("Config.cs:LoadWorld() - Could not find the world or too many worlds! Constructing blank one"); World blank = new World(); Console.WriteLine("Config.cs:LoadWorld() - Saving initial world state to disk"); db.Set(blank); db.Commit(); return blank; - } + // } } public void LoadFromGrid() { -- cgit v1.1