diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs index 0e08bfed61..6e989d7194 100644 --- a/OpenSim/Framework/LandData.cs +++ b/OpenSim/Framework/LandData.cs @@ -132,6 +132,7 @@ namespace OpenSim.Framework /// /// Whether to obscure parcel media URL + /// Now to obscure parcel MOAP /// [XmlIgnore] public bool ObscureMedia diff --git a/OpenSim/Framework/LandUpdateArgs.cs b/OpenSim/Framework/LandUpdateArgs.cs index a48b8bf63a..6305223f57 100644 --- a/OpenSim/Framework/LandUpdateArgs.cs +++ b/OpenSim/Framework/LandUpdateArgs.cs @@ -59,5 +59,6 @@ namespace OpenSim.Framework public bool SeeAVs; public bool AnyAVSounds; public bool GroupAVSounds; + public bool ObscureMOAP; } } diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 1745986615..e3aa8c28d6 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -6543,11 +6543,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP LLSDxmlEncode2.AddElem("MediaWidth", landData.MediaWidth, sb); LLSDxmlEncode2.AddElem("MediaLoop", landData.MediaLoop, sb); LLSDxmlEncode2.AddElem("MediaType", landData.MediaType, sb); - LLSDxmlEncode2.AddElem("ObscureMedia", landData.ObscureMedia, sb); - LLSDxmlEncode2.AddElem("ObscureMusic", landData.ObscureMusic, sb); + //LLSDxmlEncode2.AddElem("ObscureMedia", landData.ObscureMedia, sb); + LLSDxmlEncode2.AddElem("ObscureMedia", false, sb); //obsolete + //LLSDxmlEncode2.AddElem("ObscureMusic", landData.ObscureMusic, sb); + LLSDxmlEncode2.AddElem("ObscureMusic", false, sb); //obsolete LLSDxmlEncode2.AddEndMapAndArray(sb); + LLSDxmlEncode2.AddArrayAndMap("ParcelExtendedFlags", sb); // obscure moap + LLSDxmlEncode2.AddElem("Flags", (uint)(landData.ObscureMedia ? 1 : (int)0), sb); + LLSDxmlEncode2.AddEndMapAndArray(sb); + LLSDxmlEncode2.AddArrayAndMap("AgeVerificationBlock", sb); LLSDxmlEncode2.AddElem("RegionDenyAgeUnverified", (regionFlags & (uint)RegionFlags.DenyAgeUnverified) != 0, sb); diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 904eae206f..2cd17bd578 100755 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -1459,11 +1459,11 @@ namespace OpenSim.Region.CoreModules.World.Land // now flags // local sound - if ((currentParcel.LandData.Flags & (uint)ParcelFlags.SoundLocal) != 0) + if ((currentParcelLandData.Flags & (uint)ParcelFlags.SoundLocal) != 0) curByte |= (byte)LandChannel.LAND_FLAG_LOCALSOUND; // hide avatars - if (!currentParcel.LandData.SeeAVs) + if (!currentParcelLandData.SeeAVs) curByte |= (byte)LandChannel.LAND_FLAG_HIDEAVATARS; // border flags for current @@ -2088,8 +2088,12 @@ namespace OpenSim.Region.CoreModules.World.Land land_update.MediaWidth = properties.MediaWidth; land_update.MediaHeight = properties.MediaHeight; land_update.MediaLoop = properties.MediaLoop; - land_update.ObscureMusic = properties.ObscureMusic; - land_update.ObscureMedia = properties.ObscureMedia; + //land_update.ObscureMusic = properties.ObscureMusic; + //land_update.ObscureMedia = properties.ObscureMedia; + + land_update.ObscureMedia = false; // obsolete + if (args.TryGetValue("obscure_moap", out OSD omoap)) + land_update.ObscureMOAP = omoap.AsBoolean(); if (args.ContainsKey("see_avs")) { @@ -2810,7 +2814,8 @@ namespace OpenSim.Region.CoreModules.World.Land cdl.AddRow("Media Width", ld.MediaWidth); cdl.AddRow("Media Height", ld.MediaHeight); cdl.AddRow("Media Loop", ld.MediaLoop); - cdl.AddRow("Obscure Media", ld.ObscureMedia); + + cdl.AddRow("Obscure MOAP", ld.ObscureMedia); cdl.AddRow("Parcel Category", ld.Category); diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 4781ab0ced..219b82eff5 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -614,8 +614,10 @@ namespace OpenSim.Region.CoreModules.World.Land newData.MediaWidth = args.MediaWidth; newData.MediaHeight = args.MediaHeight; newData.MediaLoop = args.MediaLoop; - newData.ObscureMusic = args.ObscureMusic; - newData.ObscureMedia = args.ObscureMedia; + //newData.ObscureMusic = args.ObscureMusic; + newData.ObscureMusic = false; // obsolete + //newData.ObscureMedia = args.ObscureMedia; + newData.ObscureMedia = args.ObscureMOAP; // obsolete, reuse for moap allowedDelta |= (uint)(ParcelFlags.SoundLocal | ParcelFlags.UrlWebPage |