diff options
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 07d00c0..4ea1739 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Linq; | ||
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using log4net; | 32 | using log4net; |
32 | using OpenMetaverse; | 33 | using OpenMetaverse; |
@@ -389,12 +390,14 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
389 | ParcelFlags.DenyAgeUnverified); | 390 | ParcelFlags.DenyAgeUnverified); |
390 | } | 391 | } |
391 | 392 | ||
392 | uint preserve = LandData.Flags & ~allowedDelta; | 393 | if (allowedDelta != 0) |
393 | newData.Flags = preserve | (args.ParcelFlags & allowedDelta); | 394 | { |
394 | 395 | uint preserve = LandData.Flags & ~allowedDelta; | |
395 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); | 396 | newData.Flags = preserve | (args.ParcelFlags & allowedDelta); |
396 | 397 | ||
397 | SendLandUpdateToAvatarsOverMe(snap_selection); | 398 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); |
399 | SendLandUpdateToAvatarsOverMe(snap_selection); | ||
400 | } | ||
398 | } | 401 | } |
399 | 402 | ||
400 | public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) | 403 | public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) |