aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
diff options
context:
space:
mode:
authorSean Dague2008-01-08 21:56:52 +0000
committerSean Dague2008-01-08 21:56:52 +0000
commitebba112379ad67b066ad903a42f496b8fdb3aba4 (patch)
tree34c7c4d83f37c9c3be67d11e86f3c6f424434213 /OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
parent* Removed unneeded and uneeded debug message (diff)
downloadopensim-SC_OLD-ebba112379ad67b066ad903a42f496b8fdb3aba4.zip
opensim-SC_OLD-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.gz
opensim-SC_OLD-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.bz2
opensim-SC_OLD-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.xz
make Stopped a property of the SceneObjectPart instead of in the
database code, so this is a shared concept.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs13
1 files changed, 1 insertions, 12 deletions
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
176 } 176 }
177 } 177 }
178 178
179 private bool Stopped(SceneObjectPart prim)
180 {
181 double threshold = 0.02;
182 return (Math.Abs(prim.Velocity.X) < threshold &&
183 Math.Abs(prim.Velocity.Y) < threshold &&
184 Math.Abs(prim.Velocity.Z) < threshold &&
185 Math.Abs(prim.AngularVelocity.X) < threshold &&
186 Math.Abs(prim.AngularVelocity.Y) < threshold &&
187 Math.Abs(prim.AngularVelocity.Z) < threshold);
188 }
189
190 public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID) 179 public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID)
191 { 180 {
192 lock (ds) 181 lock (ds)
@@ -198,7 +187,7 @@ namespace OpenSim.DataStore.MonoSqlite
198 MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID); 187 MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID);
199 addPrim(prim, Util.ToRawUuidString(obj.UUID), Util.ToRawUuidString(regionUUID)); 188 addPrim(prim, Util.ToRawUuidString(obj.UUID), Util.ToRawUuidString(regionUUID));
200 } 189 }
201 else if (Stopped(prim)) 190 else if (prim.Stopped)
202 { 191 {
203 MainLog.Instance.Verbose("DATASTORE", 192 MainLog.Instance.Verbose("DATASTORE",
204 "Adding stopped obj: " + obj.UUID + " to region: " + regionUUID); 193 "Adding stopped obj: " + obj.UUID + " to region: " + regionUUID);