diff options
author | UbitUmarov | 2015-12-12 15:40:09 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-12 15:40:09 +0000 |
commit | 4d493dd32eac473d074a93c3e554aef4ab5b94a4 (patch) | |
tree | 7a0e0ecdc5061b92694b75c56c3c14c4d7c3fa45 | |
parent | fix land access/ban list sending for new viewers (diff) | |
download | opensim-SC-4d493dd32eac473d074a93c3e554aef4ab5b94a4.zip opensim-SC-4d493dd32eac473d074a93c3e554aef4ab5b94a4.tar.gz opensim-SC-4d493dd32eac473d074a93c3e554aef4ab5b94a4.tar.bz2 opensim-SC-4d493dd32eac473d074a93c3e554aef4ab5b94a4.tar.xz |
make sure land access/ban lists are active when changed by new viewers
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 295dfee..28652d7 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -740,6 +740,17 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
740 | newData.ParcelAccessList.Add(temp); | 740 | newData.ParcelAccessList.Add(temp); |
741 | } | 741 | } |
742 | 742 | ||
743 | // update use lists flags | ||
744 | // rights already checked or we wont be here | ||
745 | uint parcelflags = newData.Flags; | ||
746 | |||
747 | if((flags & (uint)AccessList.Access) != 0) | ||
748 | parcelflags |= (uint)ParcelFlags.UseAccessList; | ||
749 | if((flags & (uint)AccessList.Ban) != 0) | ||
750 | parcelflags |= (uint)ParcelFlags.UseBanList; | ||
751 | |||
752 | newData.Flags = parcelflags; | ||
753 | |||
743 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); | 754 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); |
744 | } | 755 | } |
745 | 756 | ||