From ebba112379ad67b066ad903a42f496b8fdb3aba4 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 8 Jan 2008 21:56:52 +0000 Subject: make Stopped a property of the SceneObjectPart instead of in the database code, so this is a shared concept. --- .../OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite') diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index ac22b42..4d11dfb 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs @@ -176,17 +176,6 @@ namespace OpenSim.DataStore.MonoSqlite } } - private bool Stopped(SceneObjectPart prim) - { - double threshold = 0.02; - return (Math.Abs(prim.Velocity.X) < threshold && - Math.Abs(prim.Velocity.Y) < threshold && - Math.Abs(prim.Velocity.Z) < threshold && - Math.Abs(prim.AngularVelocity.X) < threshold && - Math.Abs(prim.AngularVelocity.Y) < threshold && - Math.Abs(prim.AngularVelocity.Z) < threshold); - } - public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID) { lock (ds) @@ -198,7 +187,7 @@ namespace OpenSim.DataStore.MonoSqlite MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID); addPrim(prim, Util.ToRawUuidString(obj.UUID), Util.ToRawUuidString(regionUUID)); } - else if (Stopped(prim)) + else if (prim.Stopped) { MainLog.Instance.Verbose("DATASTORE", "Adding stopped obj: " + obj.UUID + " to region: " + regionUUID); -- cgit v1.1