From 6ae1341c58fea31322cefca327ef672e651a27b1 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 7 Mar 2019 04:53:41 +0000 Subject: don't read from dbs wrong sound flags --- OpenSim/Data/SQLite/SQLiteSimulationData.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs') 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 prim.Sound = new UUID(row["LoopedSound"].ToString()); prim.SoundGain = Convert.ToSingle(row["LoopedSoundGain"]); - prim.SoundFlags = 1; // If it's persisted at all, it's looped + if (prim.Sound != UUID.Zero) + prim.SoundFlags = 1; // If it's persisted at all, it's looped + else + prim.SoundFlags = 0; if (!row.IsNull("TextureAnimation")) prim.TextureAnimation = Convert.FromBase64String(row["TextureAnimation"].ToString()); -- cgit v1.1