diff options
author | Justin Clark-Casey (justincc) | 2011-03-29 23:08:44 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-29 23:08:44 +0100 |
commit | f754dedbef45097910f3977ca22e9afaaaed9196 (patch) | |
tree | 88f2119ec41194436baae80c974795f4083f0944 /OpenSim/Region/ClientStack | |
parent | Improvement over 2 commits ago: make the hyperlink check understand port 80. (diff) | |
parent | disable prim count debug logging temporarily (diff) | |
download | opensim-SC-f754dedbef45097910f3977ca22e9afaaaed9196.zip opensim-SC-f754dedbef45097910f3977ca22e9afaaaed9196.tar.gz opensim-SC-f754dedbef45097910f3977ca22e9afaaaed9196.tar.bz2 opensim-SC-f754dedbef45097910f3977ca22e9afaaaed9196.tar.xz |
Merge branch 'primcounts'
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 2c6795f..8ebcabb 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -4272,8 +4272,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4272 | OutPacket(packet, ThrottleOutPacketType.Task); | 4272 | OutPacket(packet, ThrottleOutPacketType.Task); |
4273 | } | 4273 | } |
4274 | 4274 | ||
4275 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) | 4275 | public void SendLandProperties( |
4276 | int sequence_id, bool snap_selection, int request_result, ILandObject lo, | ||
4277 | float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) | ||
4276 | { | 4278 | { |
4279 | // m_log.DebugFormat("[LLCLIENTVIEW]: Sending land properties for {0} to {1}", lo.LandData.GlobalID, Name); | ||
4280 | |||
4281 | LandData landData = lo.LandData; | ||
4282 | |||
4277 | ParcelPropertiesMessage updateMessage = new ParcelPropertiesMessage(); | 4283 | ParcelPropertiesMessage updateMessage = new ParcelPropertiesMessage(); |
4278 | 4284 | ||
4279 | updateMessage.AABBMax = landData.AABBMax; | 4285 | updateMessage.AABBMax = landData.AABBMax; |
@@ -4281,15 +4287,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4281 | updateMessage.Area = landData.Area; | 4287 | updateMessage.Area = landData.Area; |
4282 | updateMessage.AuctionID = landData.AuctionID; | 4288 | updateMessage.AuctionID = landData.AuctionID; |
4283 | updateMessage.AuthBuyerID = landData.AuthBuyerID; | 4289 | updateMessage.AuthBuyerID = landData.AuthBuyerID; |
4284 | |||
4285 | updateMessage.Bitmap = landData.Bitmap; | 4290 | updateMessage.Bitmap = landData.Bitmap; |
4286 | |||
4287 | updateMessage.Desc = landData.Description; | 4291 | updateMessage.Desc = landData.Description; |
4288 | updateMessage.Category = landData.Category; | 4292 | updateMessage.Category = landData.Category; |
4289 | updateMessage.ClaimDate = Util.ToDateTime(landData.ClaimDate); | 4293 | updateMessage.ClaimDate = Util.ToDateTime(landData.ClaimDate); |
4290 | updateMessage.ClaimPrice = landData.ClaimPrice; | 4294 | updateMessage.ClaimPrice = landData.ClaimPrice; |
4291 | updateMessage.GroupID = landData.GroupID; | 4295 | updateMessage.GroupID = landData.GroupID; |
4292 | updateMessage.GroupPrims = landData.GroupPrims; | ||
4293 | updateMessage.IsGroupOwned = landData.IsGroupOwned; | 4296 | updateMessage.IsGroupOwned = landData.IsGroupOwned; |
4294 | updateMessage.LandingType = (LandingType) landData.LandingType; | 4297 | updateMessage.LandingType = (LandingType) landData.LandingType; |
4295 | updateMessage.LocalID = landData.LocalID; | 4298 | updateMessage.LocalID = landData.LocalID; |
@@ -4310,9 +4313,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4310 | updateMessage.Name = landData.Name; | 4313 | updateMessage.Name = landData.Name; |
4311 | updateMessage.OtherCleanTime = landData.OtherCleanTime; | 4314 | updateMessage.OtherCleanTime = landData.OtherCleanTime; |
4312 | updateMessage.OtherCount = 0; //TODO: Unimplemented | 4315 | updateMessage.OtherCount = 0; //TODO: Unimplemented |
4313 | updateMessage.OtherPrims = landData.OtherPrims; | 4316 | updateMessage.OwnerID = landData.OwnerID; |
4314 | updateMessage.OwnerID = landData.OwnerID; | ||
4315 | updateMessage.OwnerPrims = landData.OwnerPrims; | ||
4316 | updateMessage.ParcelFlags = (ParcelFlags) landData.Flags; | 4317 | updateMessage.ParcelFlags = (ParcelFlags) landData.Flags; |
4317 | updateMessage.ParcelPrimBonus = simObjectBonusFactor; | 4318 | updateMessage.ParcelPrimBonus = simObjectBonusFactor; |
4318 | updateMessage.PassHours = landData.PassHours; | 4319 | updateMessage.PassHours = landData.PassHours; |
@@ -4327,10 +4328,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4327 | 4328 | ||
4328 | updateMessage.RentPrice = 0; | 4329 | updateMessage.RentPrice = 0; |
4329 | updateMessage.RequestResult = (ParcelResult) request_result; | 4330 | updateMessage.RequestResult = (ParcelResult) request_result; |
4330 | updateMessage.SalePrice = landData.SalePrice; | 4331 | updateMessage.SalePrice = landData.SalePrice; |
4331 | updateMessage.SelectedPrims = landData.SelectedPrims; | ||
4332 | updateMessage.SelfCount = 0; //TODO: Unimplemented | 4332 | updateMessage.SelfCount = 0; //TODO: Unimplemented |
4333 | updateMessage.SequenceID = sequence_id; | 4333 | updateMessage.SequenceID = sequence_id; |
4334 | |||
4334 | if (landData.SimwideArea > 0) | 4335 | if (landData.SimwideArea > 0) |
4335 | { | 4336 | { |
4336 | int simulatorCapacity = (int)(((float)landData.SimwideArea / 65536.0f) * (float)m_scene.RegionInfo.ObjectCapacity * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); | 4337 | int simulatorCapacity = (int)(((float)landData.SimwideArea / 65536.0f) * (float)m_scene.RegionInfo.ObjectCapacity * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); |
@@ -4340,12 +4341,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4340 | { | 4341 | { |
4341 | updateMessage.SimWideMaxPrims = 0; | 4342 | updateMessage.SimWideMaxPrims = 0; |
4342 | } | 4343 | } |
4343 | updateMessage.SimWideTotalPrims = landData.SimwidePrims; | 4344 | |
4344 | updateMessage.SnapSelection = snap_selection; | 4345 | updateMessage.SnapSelection = snap_selection; |
4345 | updateMessage.SnapshotID = landData.SnapshotID; | 4346 | updateMessage.SnapshotID = landData.SnapshotID; |
4346 | updateMessage.Status = (ParcelStatus) landData.Status; | 4347 | updateMessage.Status = (ParcelStatus) landData.Status; |
4347 | updateMessage.TotalPrims = landData.OwnerPrims + landData.GroupPrims + landData.OtherPrims + | ||
4348 | landData.SelectedPrims; | ||
4349 | updateMessage.UserLocation = landData.UserLocation; | 4348 | updateMessage.UserLocation = landData.UserLocation; |
4350 | updateMessage.UserLookAt = landData.UserLookAt; | 4349 | updateMessage.UserLookAt = landData.UserLookAt; |
4351 | 4350 | ||
@@ -4356,6 +4355,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4356 | updateMessage.MediaLoop = landData.MediaLoop; | 4355 | updateMessage.MediaLoop = landData.MediaLoop; |
4357 | updateMessage.ObscureMusic = landData.ObscureMusic; | 4356 | updateMessage.ObscureMusic = landData.ObscureMusic; |
4358 | updateMessage.ObscureMedia = landData.ObscureMedia; | 4357 | updateMessage.ObscureMedia = landData.ObscureMedia; |
4358 | |||
4359 | IPrimCounts pc = lo.PrimCounts; | ||
4360 | updateMessage.OwnerPrims = pc.Owner; | ||
4361 | updateMessage.GroupPrims = pc.Group; | ||
4362 | updateMessage.OtherPrims = pc.Others; | ||
4363 | updateMessage.TotalPrims = pc.Total; | ||
4364 | updateMessage.SimWideTotalPrims = pc.Simulator; | ||
4365 | |||
4366 | // TODO: Need to transfer selected prims to new prim count structure. | ||
4367 | updateMessage.SelectedPrims = landData.SelectedPrims; | ||
4359 | 4368 | ||
4360 | try | 4369 | try |
4361 | { | 4370 | { |