mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Correct display of landmark about info. Also correct region maturity rating
in LM info. Maturity is NOT the parcel's setting, that is only for the image and text. Parcel maturity is governed by region maturity.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenSim.Services.Connectors
|
||||
m_GridService = gridServices;
|
||||
}
|
||||
|
||||
public virtual LandData GetLandData(ulong regionHandle, uint x, uint y)
|
||||
public virtual LandData GetLandData(ulong regionHandle, uint x, uint y, out byte regionAccess)
|
||||
{
|
||||
LandData landData = null;
|
||||
Hashtable hash = new Hashtable();
|
||||
@@ -74,6 +74,7 @@ namespace OpenSim.Services.Connectors
|
||||
|
||||
IList paramList = new ArrayList();
|
||||
paramList.Add(hash);
|
||||
regionAccess = 42; // Default to adult. Better safe...
|
||||
|
||||
try
|
||||
{
|
||||
@@ -109,6 +110,8 @@ namespace OpenSim.Services.Connectors
|
||||
landData.SalePrice = Convert.ToInt32(hash["SalePrice"]);
|
||||
landData.SnapshotID = new UUID((string)hash["SnapshotID"]);
|
||||
landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]);
|
||||
if (hash["RegionAccess"] != null)
|
||||
regionAccess = (byte)Convert.ToInt32((string)hash["RegionAccess"]);
|
||||
m_log.DebugFormat("[OGS1 GRID SERVICES] Got land data for parcel {0}", landData.Name);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@@ -33,6 +33,6 @@ namespace OpenSim.Services.Interfaces
|
||||
{
|
||||
public interface ILandService
|
||||
{
|
||||
LandData GetLandData(ulong regionHandle, uint x, uint y);
|
||||
LandData GetLandData(ulong regionHandle, uint x, uint y, out byte regionAccess);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user