From 07cb1d4f0e9acfaba22b9b8ef1611613ab827a1a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 24 Aug 2008 06:39:54 +0000 Subject: Selling an object in-place (as original) now works. Builders can now ply their trade. Is that nuts? --- OpenSim/Data/MySQL/MySQLRegionData.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index c0ebbc6..f6b49af 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs @@ -1554,6 +1554,11 @@ namespace OpenSim.Data.MySQL row["LoopedSound"] = prim.Sound.ToString(); row["LoopedSoundGain"] = prim.SoundGain; } + else + { + row["LoopedSound"] = LLUUID.Zero; + row["LoopedSoundGain"] = 0.0f; + } row["TextureAnimation"] = prim.TextureAnimation; @@ -1562,22 +1567,29 @@ namespace OpenSim.Data.MySQL row["OmegaZ"] = prim.RotationalVelocity.Z; row["CameraEyeOffsetX"] = prim.GetCameraEyeOffset().X; - row["CameraEyeOffsetX"] = prim.GetCameraEyeOffset().Y; + row["CameraEyeOffsetY"] = prim.GetCameraEyeOffset().Y; row["CameraEyeOffsetZ"] = prim.GetCameraEyeOffset().Z; row["CameraAtOffsetX"] = prim.GetCameraAtOffset().X; - row["CameraAtOffsetX"] = prim.GetCameraAtOffset().Y; + row["CameraAtOffsetY"] = prim.GetCameraAtOffset().Y; row["CameraAtOffsetZ"] = prim.GetCameraAtOffset().Z; if (prim.GetForceMouselook()) row["ForceMouselook"] = 1; + else + row["ForceMouselook"] = 0; row["ScriptAccessPin"] = prim.ScriptAccessPin; if (prim.AllowedDrop) row["AllowedDrop"] = 1; + else + row["AllowedDrop"] = 0; + if (prim.DIE_AT_EDGE) row["DieAtEdge"] = 1; + else + row["DieAtEdge"] = 0; row["SalePrice"] = prim.SalePrice; row["SaleType"] = Convert.ToInt16(prim.ObjectSaleType); -- cgit v1.1