diff options
author | mingchen | 2007-06-08 19:30:27 +0000 |
---|---|---|
committer | mingchen | 2007-06-08 19:30:27 +0000 |
commit | 8157182d378de82ae7443b57a90e07267ce1466e (patch) | |
tree | 3139163f719fdbb24331a2fc4f7afd98c36e4764 /OpenSim/OpenSim.World/ParcelManager.cs | |
parent | *Merged EstateManager, EstateSettings, ParcelManager,Parcel, and ParcelData c... (diff) | |
download | opensim-SC_OLD-8157182d378de82ae7443b57a90e07267ce1466e.zip opensim-SC_OLD-8157182d378de82ae7443b57a90e07267ce1466e.tar.gz opensim-SC_OLD-8157182d378de82ae7443b57a90e07267ce1466e.tar.bz2 opensim-SC_OLD-8157182d378de82ae7443b57a90e07267ce1466e.tar.xz |
*RegionInfo in Avatar class now protected again (oops, my fault)
Diffstat (limited to 'OpenSim/OpenSim.World/ParcelManager.cs')
-rw-r--r-- | OpenSim/OpenSim.World/ParcelManager.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/OpenSim.World/ParcelManager.cs b/OpenSim/OpenSim.World/ParcelManager.cs index d571150..9fbacd6 100644 --- a/OpenSim/OpenSim.World/ParcelManager.cs +++ b/OpenSim/OpenSim.World/ParcelManager.cs | |||
@@ -74,14 +74,17 @@ namespace OpenSim.world | |||
74 | private int lastParcelLocalID = START_PARCEL_LOCAL_ID - 1; | 74 | private int lastParcelLocalID = START_PARCEL_LOCAL_ID - 1; |
75 | private int[,] parcelIDList = new int[64, 64]; | 75 | private int[,] parcelIDList = new int[64, 64]; |
76 | 76 | ||
77 | private static World m_world; | 77 | private World m_world; |
78 | private RegionInfo m_regInfo; | ||
79 | |||
78 | #endregion | 80 | #endregion |
79 | 81 | ||
80 | #region Constructors | 82 | #region Constructors |
81 | public ParcelManager(World world) | 83 | public ParcelManager(World world, RegionInfo reginfo) |
82 | { | 84 | { |
83 | 85 | ||
84 | m_world = world; | 86 | m_world = world; |
87 | m_regInfo = reginfo; | ||
85 | parcelIDList.Initialize(); | 88 | parcelIDList.Initialize(); |
86 | 89 | ||
87 | } | 90 | } |
@@ -421,7 +424,7 @@ namespace OpenSim.world | |||
421 | fullSimParcel.parcelData.parcelName = "Your Sim Parcel"; | 424 | fullSimParcel.parcelData.parcelName = "Your Sim Parcel"; |
422 | fullSimParcel.parcelData.parcelDesc = ""; | 425 | fullSimParcel.parcelData.parcelDesc = ""; |
423 | 426 | ||
424 | fullSimParcel.parcelData.ownerID = m_world.m_regInfo.MasterAvatarAssignedUUID; | 427 | fullSimParcel.parcelData.ownerID = m_regInfo.MasterAvatarAssignedUUID; |
425 | fullSimParcel.parcelData.salePrice = 1; | 428 | fullSimParcel.parcelData.salePrice = 1; |
426 | fullSimParcel.parcelData.parcelFlags = libsecondlife.Parcel.ParcelFlags.ForSale; | 429 | fullSimParcel.parcelData.parcelFlags = libsecondlife.Parcel.ParcelFlags.ForSale; |
427 | fullSimParcel.parcelData.parcelStatus = libsecondlife.Parcel.ParcelStatus.Leased; | 430 | fullSimParcel.parcelData.parcelStatus = libsecondlife.Parcel.ParcelStatus.Leased; |