diff options
author | Adam Frisby | 2007-07-13 20:01:16 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-13 20:01:16 +0000 |
commit | ad264a6b6dbb92a48bb744936a2f3967fb637730 (patch) | |
tree | 40b8d4f15781cdc4142722140d3936492cbecbd6 /OpenSim | |
parent | * Default parcel flags now allow flying, landmark creation, object entry, dee... (diff) | |
download | opensim-SC-ad264a6b6dbb92a48bb744936a2f3967fb637730.zip opensim-SC-ad264a6b6dbb92a48bb744936a2f3967fb637730.tar.gz opensim-SC-ad264a6b6dbb92a48bb744936a2f3967fb637730.tar.bz2 opensim-SC-ad264a6b6dbb92a48bb744936a2f3967fb637730.tar.xz |
* Fixing issue with ParcelFlags. ParcelFlags is now a uint rather than an enum.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/General/Types/ParcelData.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Environment/ParcelManager.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Framework/General/Types/ParcelData.cs b/OpenSim/Framework/General/Types/ParcelData.cs index e68b679..dbb42a3 100644 --- a/OpenSim/Framework/General/Types/ParcelData.cs +++ b/OpenSim/Framework/General/Types/ParcelData.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Framework.Types | |||
49 | public int groupPrims = 0; //Unemplemented | 49 | public int groupPrims = 0; //Unemplemented |
50 | public int salePrice = 0; //Unemeplemented. Parcels price. | 50 | public int salePrice = 0; //Unemeplemented. Parcels price. |
51 | public Parcel.ParcelStatus parcelStatus = Parcel.ParcelStatus.None; | 51 | public Parcel.ParcelStatus parcelStatus = Parcel.ParcelStatus.None; |
52 | public Parcel.ParcelFlags parcelFlags = Parcel.ParcelFlags.AllowFly | Parcel.ParcelFlags.AllowLandmark | Parcel.ParcelFlags.AllowAllObjectEntry | Parcel.ParcelFlags.AllowDeedToGroup | Parcel.ParcelFlags.AllowTerraform | Parcel.ParcelFlags.CreateObjects | Parcel.ParcelFlags.AllowOtherScripts; | 52 | public uint parcelFlags = (uint)Parcel.ParcelFlags.AllowFly | (uint)Parcel.ParcelFlags.AllowLandmark | (uint)Parcel.ParcelFlags.AllowAllObjectEntry | (uint)Parcel.ParcelFlags.AllowDeedToGroup | (uint)Parcel.ParcelFlags.AllowTerraform | (uint)Parcel.ParcelFlags.CreateObjects | (uint)Parcel.ParcelFlags.AllowOtherScripts; |
53 | public byte landingType = 0; | 53 | public byte landingType = 0; |
54 | public byte mediaAutoScale = 0; | 54 | public byte mediaAutoScale = 0; |
55 | public LLUUID mediaID = LLUUID.Zero; | 55 | public LLUUID mediaID = LLUUID.Zero; |
diff --git a/OpenSim/Region/Environment/ParcelManager.cs b/OpenSim/Region/Environment/ParcelManager.cs index 5e7ee18..1e55633 100644 --- a/OpenSim/Region/Environment/ParcelManager.cs +++ b/OpenSim/Region/Environment/ParcelManager.cs | |||
@@ -478,7 +478,7 @@ namespace OpenSim.Region.Environment | |||
478 | 478 | ||
479 | fullSimParcel.parcelData.ownerID = m_regInfo.MasterAvatarAssignedUUID; | 479 | fullSimParcel.parcelData.ownerID = m_regInfo.MasterAvatarAssignedUUID; |
480 | fullSimParcel.parcelData.salePrice = 1; | 480 | fullSimParcel.parcelData.salePrice = 1; |
481 | fullSimParcel.parcelData.parcelFlags = libsecondlife.Parcel.ParcelFlags.ForSale; | 481 | fullSimParcel.parcelData.parcelFlags |= (uint)libsecondlife.Parcel.ParcelFlags.ForSale; |
482 | fullSimParcel.parcelData.parcelStatus = libsecondlife.Parcel.ParcelStatus.Leased; | 482 | fullSimParcel.parcelData.parcelStatus = libsecondlife.Parcel.ParcelStatus.Leased; |
483 | 483 | ||
484 | addParcel(fullSimParcel); | 484 | addParcel(fullSimParcel); |
@@ -603,7 +603,7 @@ namespace OpenSim.Region.Environment | |||
603 | updatePacket.ParcelData.OtherPrims = 0; //unemplented | 603 | updatePacket.ParcelData.OtherPrims = 0; //unemplented |
604 | updatePacket.ParcelData.OwnerID = parcelData.ownerID; | 604 | updatePacket.ParcelData.OwnerID = parcelData.ownerID; |
605 | updatePacket.ParcelData.OwnerPrims = 0; //unemplemented | 605 | updatePacket.ParcelData.OwnerPrims = 0; //unemplemented |
606 | updatePacket.ParcelData.ParcelFlags = (uint)parcelData.parcelFlags; //unemplemented | 606 | updatePacket.ParcelData.ParcelFlags = parcelData.parcelFlags; //unemplemented |
607 | updatePacket.ParcelData.ParcelPrimBonus = (float)1.0; //unemplemented | 607 | updatePacket.ParcelData.ParcelPrimBonus = (float)1.0; //unemplemented |
608 | updatePacket.ParcelData.PassHours = parcelData.passHours; | 608 | updatePacket.ParcelData.PassHours = parcelData.passHours; |
609 | updatePacket.ParcelData.PassPrice = parcelData.passPrice; | 609 | updatePacket.ParcelData.PassPrice = parcelData.passPrice; |
@@ -644,7 +644,7 @@ namespace OpenSim.Region.Environment | |||
644 | parcelData.mediaURL = Helpers.FieldToUTF8String(packet.ParcelData.MediaURL); | 644 | parcelData.mediaURL = Helpers.FieldToUTF8String(packet.ParcelData.MediaURL); |
645 | parcelData.musicURL = Helpers.FieldToUTF8String(packet.ParcelData.MusicURL); | 645 | parcelData.musicURL = Helpers.FieldToUTF8String(packet.ParcelData.MusicURL); |
646 | parcelData.parcelName = Helpers.FieldToUTF8String(packet.ParcelData.Name); | 646 | parcelData.parcelName = Helpers.FieldToUTF8String(packet.ParcelData.Name); |
647 | parcelData.parcelFlags = (libsecondlife.Parcel.ParcelFlags)packet.ParcelData.ParcelFlags; | 647 | parcelData.parcelFlags = packet.ParcelData.ParcelFlags; |
648 | parcelData.passHours = packet.ParcelData.PassHours; | 648 | parcelData.passHours = packet.ParcelData.PassHours; |
649 | parcelData.passPrice = packet.ParcelData.PassPrice; | 649 | parcelData.passPrice = packet.ParcelData.PassPrice; |
650 | parcelData.salePrice = packet.ParcelData.SalePrice; | 650 | parcelData.salePrice = packet.ParcelData.SalePrice; |