Ensure the show in search flag is cleared on ownership change. Also, when
land is reclaimed, reset it's for sale flags so it can't be bought again right away.slimupdates2
parent
8b4f729a21
commit
adc34c7129
|
@ -1188,6 +1188,10 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
land.LandData.ClaimDate = Util.UnixTimeSinceEpoch();
|
||||
land.LandData.GroupID = UUID.Zero;
|
||||
land.LandData.IsGroupOwned = false;
|
||||
land.LandData.SalePrice = 0;
|
||||
land.LandData.AuthBuyerID = UUID.Zero;
|
||||
land.LandData.Flags &= ~(uint) (ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects | ParcelFlags.ShowDirectory);
|
||||
|
||||
m_scene.ForEachClient(SendParcelOverlay);
|
||||
land.SendLandUpdateToClient(true, remote_client);
|
||||
}
|
||||
|
|
|
@ -247,7 +247,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
newData.ClaimPrice = claimprice;
|
||||
newData.SalePrice = 0;
|
||||
newData.AuthBuyerID = UUID.Zero;
|
||||
newData.Flags &= ~(uint) (ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects);
|
||||
newData.Flags &= ~(uint) (ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects | ParcelFlags.ShowDirectory);
|
||||
m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData);
|
||||
|
||||
SendLandUpdateToAvatarsOverMe(true);
|
||||
|
@ -260,6 +260,9 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
newData.GroupID = groupID;
|
||||
newData.IsGroupOwned = true;
|
||||
|
||||
// Reset show in directory flag on deed
|
||||
newData.Flags &= ~(uint) (ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects | ParcelFlags.ShowDirectory);
|
||||
|
||||
m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData);
|
||||
|
||||
SendLandUpdateToAvatarsOverMe(true);
|
||||
|
|
Loading…
Reference in New Issue