aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteSimulationData.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-03-07 04:53:41 +0000
committerUbitUmarov2019-03-07 04:53:41 +0000
commit6ae1341c58fea31322cefca327ef672e651a27b1 (patch)
treefa3964e1d41ebad1943bfb18ea3be2f0494783a0 /OpenSim/Data/SQLite/SQLiteSimulationData.cs
parentdon't send irrelevant data (diff)
downloadopensim-SC-6ae1341c58fea31322cefca327ef672e651a27b1.zip
opensim-SC-6ae1341c58fea31322cefca327ef672e651a27b1.tar.gz
opensim-SC-6ae1341c58fea31322cefca327ef672e651a27b1.tar.bz2
opensim-SC-6ae1341c58fea31322cefca327ef672e651a27b1.tar.xz
don't read from dbs wrong sound flags
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index e02ac7d..1403a8f 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -1742,7 +1742,10 @@ namespace OpenSim.Data.SQLite
1742 1742
1743 prim.Sound = new UUID(row["LoopedSound"].ToString()); 1743 prim.Sound = new UUID(row["LoopedSound"].ToString());
1744 prim.SoundGain = Convert.ToSingle(row["LoopedSoundGain"]); 1744 prim.SoundGain = Convert.ToSingle(row["LoopedSoundGain"]);
1745 prim.SoundFlags = 1; // If it's persisted at all, it's looped 1745 if (prim.Sound != UUID.Zero)
1746 prim.SoundFlags = 1; // If it's persisted at all, it's looped
1747 else
1748 prim.SoundFlags = 0;
1746 1749
1747 if (!row.IsNull("TextureAnimation")) 1750 if (!row.IsNull("TextureAnimation"))
1748 prim.TextureAnimation = Convert.FromBase64String(row["TextureAnimation"].ToString()); 1751 prim.TextureAnimation = Convert.FromBase64String(row["TextureAnimation"].ToString());