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 b1cfc81..6e54915 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; |
@@ -367,12 +368,14 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
367 | ParcelFlags.DenyAgeUnverified); | 368 | ParcelFlags.DenyAgeUnverified); |
368 | } | 369 | } |
369 | 370 | ||
370 | uint preserve = LandData.Flags & ~allowedDelta; | 371 | if (allowedDelta != 0) |
371 | newData.Flags = preserve | (args.ParcelFlags & allowedDelta); | 372 | { |
372 | 373 | uint preserve = LandData.Flags & ~allowedDelta; | |
373 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); | 374 | newData.Flags = preserve | (args.ParcelFlags & allowedDelta); |
374 | 375 | ||
375 | SendLandUpdateToAvatarsOverMe(snap_selection); | 376 | m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); |
377 | SendLandUpdateToAvatarsOverMe(snap_selection); | ||
378 | } | ||
376 | } | 379 | } |
377 | 380 | ||
378 | public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) | 381 | public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) |