mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
don't read from dbs wrong sound flags
This commit is contained in:
@@ -1403,7 +1403,10 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
prim.Sound = DBGuid.FromDB(row["LoopedSound"].ToString());
|
||||
prim.SoundGain = (float)(double)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["TextureAnimation"] is DBNull))
|
||||
prim.TextureAnimation = (byte[])row["TextureAnimation"];
|
||||
|
||||
Reference in New Issue
Block a user