aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/ParcelManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/ParcelManager.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/ParcelManager.cs b/OpenSim/Region/Environment/ParcelManager.cs
index 28bfd4c..3603caa 100644
--- a/OpenSim/Region/Environment/ParcelManager.cs
+++ b/OpenSim/Region/Environment/ParcelManager.cs
@@ -683,7 +683,14 @@ namespace OpenSim.Region.Environment
683 updatePacket.ParcelData.IsGroupOwned = parcelData.isGroupOwned; 683 updatePacket.ParcelData.IsGroupOwned = parcelData.isGroupOwned;
684 updatePacket.ParcelData.LandingType = (byte)parcelData.landingType; 684 updatePacket.ParcelData.LandingType = (byte)parcelData.landingType;
685 updatePacket.ParcelData.LocalID = parcelData.localID; 685 updatePacket.ParcelData.LocalID = parcelData.localID;
686 updatePacket.ParcelData.MaxPrims = 1000; //unemplemented 686 if (parcelData.area > 0)
687 {
688 updatePacket.ParcelData.MaxPrims = Convert.ToInt32(Math.Round((Convert.ToDecimal(parcelData.area) / Convert.ToDecimal(65536)) * 15000 * Convert.ToDecimal(m_world.RegionInfo.estateSettings.objectBonusFactor)));
689 }
690 else
691 {
692 updatePacket.ParcelData.MaxPrims = 0;
693 }
687 updatePacket.ParcelData.MediaAutoScale = parcelData.mediaAutoScale; 694 updatePacket.ParcelData.MediaAutoScale = parcelData.mediaAutoScale;
688 updatePacket.ParcelData.MediaID = parcelData.mediaID; 695 updatePacket.ParcelData.MediaID = parcelData.mediaID;
689 updatePacket.ParcelData.MediaURL = Helpers.StringToField(parcelData.mediaURL); 696 updatePacket.ParcelData.MediaURL = Helpers.StringToField(parcelData.mediaURL);
@@ -711,7 +718,7 @@ namespace OpenSim.Region.Environment
711 updatePacket.ParcelData.SequenceID = sequence_id; 718 updatePacket.ParcelData.SequenceID = sequence_id;
712 if (parcelData.simwideArea > 0) 719 if (parcelData.simwideArea > 0)
713 { 720 {
714 updatePacket.ParcelData.SimWideMaxPrims = Convert.ToInt32(Math.Floor((Convert.ToDecimal(65536) / Convert.ToDecimal(parcelData.simwideArea)) * 15000)); 721 updatePacket.ParcelData.SimWideMaxPrims = Convert.ToInt32(Math.Round((Convert.ToDecimal(parcelData.simwideArea) / Convert.ToDecimal(65536)) * 15000 * Convert.ToDecimal(m_world.RegionInfo.estateSettings.objectBonusFactor)));
715 } 722 }
716 else 723 else
717 { 724 {