From f708b413a15100e863a43b5fca381bb4cc1cf8da Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 18 Jun 2020 13:18:08 +0100 Subject: [PATCH] more to go --- OpenSim/Framework/EstateSettings.cs | 4 ++-- .../ClientStack/Linden/UDP/LLClientView.cs | 2 +- .../World/Estate/EstateManagementModule.cs | 24 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index f2d96c917e..7fe75e5b4d 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs @@ -240,8 +240,8 @@ namespace OpenSim.Framework set { m_DenyMinors = value; } } - private bool m_AllowEnviromentOverride = false; - public bool AllowEnviromentOverride + private bool m_AllowEnviromentOverride = false; //keep the mispell so not to go change the dbs + public bool AllowEnvironmentOverride { get { return m_AllowEnviromentOverride; } set { m_AllowEnviromentOverride = value; } diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 77418a5692..0bb293f3fc 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -867,7 +867,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (Scene.RegionInfo.EstateSettings.DenyMinors) flags |= RegionFlags.DenyAgeUnverified; - if(Scene.RegionInfo.EstateSettings.AllowEnviromentOverride) + if(Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride) flags |= RegionFlags.AllowEnviromentOverride; return (uint)flags; } diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index f0c5e453f7..68a931a0dd 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs @@ -180,7 +180,7 @@ namespace OpenSim.Region.CoreModules.World.Estate if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) flags |= RegionFlags.ResetHomeOnTeleport; - if (Scene.RegionInfo.EstateSettings.AllowEnviromentOverride) + if (Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride) flags |= RegionFlags.AllowEnviromentOverride; // TODO: SkipUpdateInterestList @@ -1523,7 +1523,7 @@ namespace OpenSim.Region.CoreModules.World.Estate public void handleEstateChangeInfo(IClientAPI remoteClient, UUID invoice, UUID senderID, UInt32 parms1, UInt32 parms2) { - bool lastallowEnvOvr = Scene.RegionInfo.EstateSettings.AllowEnviromentOverride; + bool lastallowEnvOvr = Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride; if ((parms1 & 0x00008000) != 0) Scene.RegionInfo.EstateSettings.PublicAccess = true; @@ -1537,9 +1537,9 @@ namespace OpenSim.Region.CoreModules.World.Estate Scene.RegionInfo.EstateSettings.TaxFree = true; if ((parms1 & 0x00000200) != 0) - Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = true; + Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride = true; else - Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = false; + Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride = false; if ((parms1 & 0x00100000) != 0) Scene.RegionInfo.EstateSettings.AllowDirectTeleport = true; @@ -1575,9 +1575,9 @@ namespace OpenSim.Region.CoreModules.World.Estate Scene.EstateDataService.StoreEstateSettings(Scene.RegionInfo.EstateSettings); - if (lastallowEnvOvr && Scene.LandChannel != null && !Scene.RegionInfo.EstateSettings.AllowEnviromentOverride) + if (lastallowEnvOvr && Scene.LandChannel != null && !Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride) { - Scene.ClearAllParcelEnviroments(); + Scene.ClearAllParcelEnvironments(); } TriggerEstateInfoChange(); @@ -1590,9 +1590,9 @@ namespace OpenSim.Region.CoreModules.World.Estate bool allowDirectTeleport, bool denyAnonymous, bool denyAgeUnverified, bool alloVoiceChat, bool overridePublicAccess, - bool allowEnviromentOverride) + bool allowEnvironmentOverride) { - bool lastallowEnvOvr = Scene.RegionInfo.EstateSettings.AllowEnviromentOverride; + bool lastallowEnvOvr = Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride; Scene.RegionInfo.EstateSettings.PublicAccess = externallyVisible; Scene.RegionInfo.EstateSettings.AllowDirectTeleport = allowDirectTeleport; @@ -1603,11 +1603,11 @@ namespace OpenSim.Region.CoreModules.World.Estate // taxfree is now !AllowAccessOverride Scene.RegionInfo.EstateSettings.TaxFree = overridePublicAccess; Scene.RegionInfo.EstateSettings.DenyMinors = denyAgeUnverified; - Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = allowEnviromentOverride; + Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride = allowEnvironmentOverride; Scene.EstateDataService.StoreEstateSettings(Scene.RegionInfo.EstateSettings); - if(lastallowEnvOvr && !allowEnviromentOverride) - Scene.ClearAllParcelEnviroments(); + if(lastallowEnvOvr && !allowEnvironmentOverride) + Scene.ClearAllParcelEnvironments(); TriggerEstateInfoChange(); @@ -1706,7 +1706,7 @@ namespace OpenSim.Region.CoreModules.World.Estate if (Scene.RegionInfo.EstateSettings.DenyMinors) flags |= RegionFlags.DenyAgeUnverified; - if (Scene.RegionInfo.EstateSettings.AllowEnviromentOverride) + if (Scene.RegionInfo.EstateSettings.AllowEnvironmentOverride) flags |= RegionFlags.AllowEnviromentOverride; return (uint)flags;