diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs index e3b7cf5..561c5cf 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs | |||
@@ -27,18 +27,14 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | ||
31 | using Axiom.Math; | 30 | using Axiom.Math; |
32 | using libsecondlife; | 31 | using libsecondlife; |
33 | using libsecondlife.Packets; | 32 | using libsecondlife.Packets; |
34 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Console; | ||
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Region.Environment.Interfaces; | 34 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Scenes; | ||
38 | using OpenSim.Region.Physics.Manager; | 36 | using OpenSim.Region.Physics.Manager; |
39 | 37 | ||
40 | using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs; | ||
41 | |||
42 | namespace OpenSim.Region.Environment.Modules.LandManagement | 38 | namespace OpenSim.Region.Environment.Modules.LandManagement |
43 | { | 39 | { |
44 | public class LandChannel : ILandChannel | 40 | public class LandChannel : ILandChannel |
@@ -245,7 +241,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement | |||
245 | x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0))); | 241 | x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0))); |
246 | y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0))); | 242 | y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0))); |
247 | } | 243 | } |
248 | catch (System.OverflowException) | 244 | catch (OverflowException) |
249 | { | 245 | { |
250 | return null; | 246 | return null; |
251 | } | 247 | } |
@@ -957,7 +953,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement | |||
957 | // and land has been validated as well, this method transfers | 953 | // and land has been validated as well, this method transfers |
958 | // the land ownership | 954 | // the land ownership |
959 | 955 | ||
960 | public void handleLandBuyRequest(Object o, LandBuyArgs e) | 956 | public void handleLandBuyRequest(Object o, EventManager.LandBuyArgs e) |
961 | { | 957 | { |
962 | if (e.economyValidated && e.landValidated) | 958 | if (e.economyValidated && e.landValidated) |
963 | { | 959 | { |
@@ -976,7 +972,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement | |||
976 | // be validated. This method validates the right to buy the | 972 | // be validated. This method validates the right to buy the |
977 | // parcel | 973 | // parcel |
978 | 974 | ||
979 | public void handleLandValidationRequest(Object o, LandBuyArgs e) | 975 | public void handleLandValidationRequest(Object o, EventManager.LandBuyArgs e) |
980 | { | 976 | { |
981 | if (e.landValidated == false) | 977 | if (e.landValidated == false) |
982 | { | 978 | { |
@@ -994,7 +990,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement | |||
994 | int saleprice = lob.landData.salePrice; | 990 | int saleprice = lob.landData.salePrice; |
995 | LLUUID pOwnerID = lob.landData.ownerID; | 991 | LLUUID pOwnerID = lob.landData.ownerID; |
996 | 992 | ||
997 | bool landforsale = ((lob.landData.landFlags & (uint)(libsecondlife.Parcel.ParcelFlags.ForSale | libsecondlife.Parcel.ParcelFlags.ForSaleObjects | libsecondlife.Parcel.ParcelFlags.SellParcelObjects)) != 0); | 993 | bool landforsale = ((lob.landData.landFlags & (uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects)) != 0); |
998 | if ((AuthorizedID == LLUUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale) | 994 | if ((AuthorizedID == LLUUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale) |
999 | { | 995 | { |
1000 | lock (e) | 996 | lock (e) |