From 0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 11 Jun 2008 17:31:43 +0000 Subject: *Parcel Prim Count Maximums moved to their own functions so modules can override the default method of calculating how many prims a parcel can have. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 6839896..47a9f53 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -2630,7 +2630,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP this.OutPacket(packet, ThrottleOutPacketType.Task); } - public void sendLandProperties(IClientAPI remote_client,int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int simObjectCapacity, uint regionFlags) + public void sendLandProperties(IClientAPI remote_client,int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) { ParcelPropertiesPacket updatePacket = (ParcelPropertiesPacket) PacketPool.Instance.GetPacket(PacketType.ParcelProperties); // TODO: don't create new blocks if recycling an old packet @@ -2654,10 +2654,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP updatePacket.ParcelData.LocalID = landData.localID; if (landData.area > 0) { - updatePacket.ParcelData.MaxPrims = - Convert.ToInt32( - Math.Round((Convert.ToDecimal(landData.area) / Convert.ToDecimal(65536)) * simObjectCapacity * - Convert.ToDecimal(simObjectBonusFactor))); + updatePacket.ParcelData.MaxPrims = parcelObjectCapacity; } else { @@ -2696,10 +2693,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP updatePacket.ParcelData.SequenceID = sequence_id; if (landData.simwideArea > 0) { - updatePacket.ParcelData.SimWideMaxPrims = - Convert.ToInt32( - Math.Round((Convert.ToDecimal(landData.simwideArea) / Convert.ToDecimal(65536)) * simObjectCapacity * - Convert.ToDecimal(simObjectBonusFactor))); + updatePacket.ParcelData.SimWideMaxPrims = parcelObjectCapacity; } else { -- cgit v1.1