From c5b34a51fd81091493f9160b618ecbae9e9e78eb Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 25 Jul 2017 02:39:12 +0100 Subject: [PATCH] Ooops.. pay to land owner, not grid. group owned parcel not suported for now. (the pass already expired with kick action) --- .../Region/CoreModules/World/Land/LandManagementModule.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 54e9e59e82..377f243ad5 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -561,6 +561,12 @@ namespace OpenSim.Region.CoreModules.World.Land if(ldata.PassHours == 0) return; + if(ldata.IsGroupOwned) + { + remote_client.SendAgentAlertMessage("pass to group owned parcel not suported", false); + return; + } + if((ldata.Flags & (uint)ParcelFlags.UsePassList) == 0) return; @@ -607,7 +613,7 @@ namespace OpenSim.Region.CoreModules.World.Land return; } - mm.ApplyCharge(remote_client.AgentId, cost, MoneyTransactionType.LandPassSale); + mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost, String.Format("Parcel '{0}' pass sell",ldata.Name)); if (idx != -1) ldata.ParcelAccessList.RemoveAt(idx);