aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorMelanie2010-09-30 16:01:45 +0100
committerMelanie2010-09-30 16:01:45 +0100
commit521e2c83558d77c0482bebb6764a22c1fb8c5fd9 (patch)
treeb58fdcab0d9ac8c9056413f005144384da1686a3 /OpenSim/Region/CoreModules/World
parentFix an inventory fetch issue (diff)
parentPrevent dropping someone else's attachments (diff)
downloadopensim-SC-521e2c83558d77c0482bebb6764a22c1fb8c5fd9.zip
opensim-SC-521e2c83558d77c0482bebb6764a22c1fb8c5fd9.tar.gz
opensim-SC-521e2c83558d77c0482bebb6764a22c1fb8c5fd9.tar.bz2
opensim-SC-521e2c83558d77c0482bebb6764a22c1fb8c5fd9.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
index c8fb9da..a674d60 100644
--- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
+++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
@@ -104,7 +104,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
104 part.GetProperties(client); 104 part.GetProperties(client);
105 } 105 }
106 106
107 public bool BuyObject(IClientAPI remoteClient, UUID categoryID, uint localID, byte saleType) 107 public bool BuyObject(IClientAPI remoteClient, UUID categoryID, uint localID, byte saleType, int salePrice)
108 { 108 {
109 SceneObjectPart part = m_scene.GetSceneObjectPart(localID); 109 SceneObjectPart part = m_scene.GetSceneObjectPart(localID);
110 110
@@ -114,6 +114,18 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
114 if (part.ParentGroup == null) 114 if (part.ParentGroup == null)
115 return false; 115 return false;
116 116
117 if (part.ObjectSaleType != saleType)
118 {
119 m_dialogModule.SendAlertToUser(remoteClient, "This item is not available for the type of sale specified");
120 return false;
121 }
122
123 if (part.SalePrice != salePrice)
124 {
125 m_dialogModule.SendAlertToUser(remoteClient, "This item is not available for the price specified");
126 return false;
127 }
128
117 SceneObjectGroup group = part.ParentGroup; 129 SceneObjectGroup group = part.ParentGroup;
118 130
119 switch (saleType) 131 switch (saleType)