diff options
Diffstat (limited to 'Common/OpenSim.Framework')
-rw-r--r-- | Common/OpenSim.Framework/Types/ParcelData.cs | 28 | ||||
-rw-r--r-- | Common/OpenSim.Framework/UserProfileManagerBase.cs | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Common/OpenSim.Framework/Types/ParcelData.cs b/Common/OpenSim.Framework/Types/ParcelData.cs index b16926e..7b3a24c 100644 --- a/Common/OpenSim.Framework/Types/ParcelData.cs +++ b/Common/OpenSim.Framework/Types/ParcelData.cs | |||
@@ -28,6 +28,34 @@ namespace OpenSim.Framework.Types | |||
28 | public libsecondlife.Parcel.ParcelFlags parcelFlags = libsecondlife.Parcel.ParcelFlags.None; | 28 | public libsecondlife.Parcel.ParcelFlags parcelFlags = libsecondlife.Parcel.ParcelFlags.None; |
29 | 29 | ||
30 | public int localID = 0; | 30 | public int localID = 0; |
31 | |||
32 | public ParcelData Copy() | ||
33 | { | ||
34 | ParcelData parcelData = new ParcelData(); | ||
35 | |||
36 | parcelData.AABBMax = this.AABBMax; | ||
37 | parcelData.AABBMin = this.AABBMin; | ||
38 | parcelData.area = this.area; | ||
39 | parcelData.auctionID = this.auctionID; | ||
40 | parcelData.authBuyerID = this.authBuyerID; | ||
41 | parcelData.category = this.category; | ||
42 | parcelData.claimDate = this.claimDate; | ||
43 | parcelData.claimPrice = this.claimPrice; | ||
44 | parcelData.groupID = this.groupID; | ||
45 | parcelData.groupPrims = this.groupPrims; | ||
46 | parcelData.isGroupOwned = this.isGroupOwned; | ||
47 | parcelData.localID = this.localID; | ||
48 | parcelData.ownerID = this.ownerID; | ||
49 | parcelData.parcelBitmapByteArray = (byte[])this.parcelBitmapByteArray.Clone(); | ||
50 | parcelData.parcelDesc = this.parcelDesc; | ||
51 | parcelData.parcelFlags = this.parcelFlags; | ||
52 | parcelData.parcelName = this.parcelName; | ||
53 | parcelData.parcelStatus = this.parcelStatus; | ||
54 | parcelData.salePrice = this.salePrice; | ||
55 | |||
56 | return parcelData; | ||
57 | |||
58 | } | ||
31 | } | 59 | } |
32 | 60 | ||
33 | } | 61 | } |
diff --git a/Common/OpenSim.Framework/UserProfileManagerBase.cs b/Common/OpenSim.Framework/UserProfileManagerBase.cs index 6c80611..e0c0174 100644 --- a/Common/OpenSim.Framework/UserProfileManagerBase.cs +++ b/Common/OpenSim.Framework/UserProfileManagerBase.cs | |||
@@ -133,6 +133,7 @@ namespace OpenSim.Framework.User | |||
133 | newprofile.UUID = LLUUID.Random(); | 133 | newprofile.UUID = LLUUID.Random(); |
134 | newprofile.Inventory.CreateRootFolder(newprofile.UUID, true); | 134 | newprofile.Inventory.CreateRootFolder(newprofile.UUID, true); |
135 | this.UserProfiles.Add(newprofile.UUID, newprofile); | 135 | this.UserProfiles.Add(newprofile.UUID, newprofile); |
136 | SaveUserProfiles(); | ||
136 | return newprofile; | 137 | return newprofile; |
137 | } | 138 | } |
138 | 139 | ||