A bit more estate fudging
parent
96689723e5
commit
5c5a640aba
|
@ -697,7 +697,7 @@ namespace OpenSim.Framework
|
|||
|
||||
void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args);
|
||||
void SendEstateCovenantInformation(UUID covenant);
|
||||
void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail);
|
||||
void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner);
|
||||
|
||||
void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags);
|
||||
void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID);
|
||||
|
|
|
@ -2834,7 +2834,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
this.OutPacket(einfopack, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail)
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
|
||||
{
|
||||
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
|
||||
packet.MethodData.Invoice = invoice;
|
||||
|
@ -2851,10 +2851,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
returnblock[0].Parameter = Utils.StringToBytes(estateName);
|
||||
// TODO: remove this cruft once MasterAvatar is fully deprecated
|
||||
//
|
||||
if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
|
||||
returnblock[1].Parameter = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateOwner.ToString());
|
||||
else
|
||||
returnblock[1].Parameter = Utils.StringToBytes(m_scene.RegionInfo.MasterAvatarAssignedUUID.ToString());
|
||||
returnblock[1].Parameter = Utils.StringToBytes(estateOwner.ToString());
|
||||
returnblock[2].Parameter = Utils.StringToBytes(estateID.ToString());
|
||||
|
||||
returnblock[3].Parameter = Utils.StringToBytes(estateFlags.ToString());
|
||||
|
|
|
@ -52,8 +52,18 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
|||
//SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant)
|
||||
|
||||
uint sun = 0;
|
||||
|
||||
if (!m_scene.RegionInfo.EstateSettings.UseGlobalTime)
|
||||
sun=(uint)(m_scene.RegionInfo.EstateSettings.SunPosition*1024.0) + 0x1800;
|
||||
UUID estateOwner;
|
||||
if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
|
||||
estateOwner = m_scene.RegionInfo.EstateSettings.EstateOwner;
|
||||
else
|
||||
estateOwner = m_scene.RegionInfo.MasterAvatarAssignedUUID;
|
||||
|
||||
if (m_scene.ExternalChecks.ExternalChecksCanBeGodLike(remote_client.AgentId))
|
||||
estateOwner = remote_client.AgentId;
|
||||
|
||||
remote_client.SendDetailedEstateData(invoice,
|
||||
m_scene.RegionInfo.EstateSettings.EstateName,
|
||||
m_scene.RegionInfo.EstateSettings.EstateID,
|
||||
|
@ -61,7 +71,8 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
|||
GetEstateFlags(),
|
||||
sun,
|
||||
m_scene.RegionInfo.RegionSettings.Covenant,
|
||||
m_scene.RegionInfo.EstateSettings.AbuseEmail);
|
||||
m_scene.RegionInfo.EstateSettings.AbuseEmail,
|
||||
estateOwner);
|
||||
|
||||
remote_client.SendEstateManagersList(invoice,
|
||||
m_scene.RegionInfo.EstateSettings.EstateManagers,
|
||||
|
|
|
@ -822,7 +822,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
|||
public void SendEstateCovenantInformation(UUID covenant)
|
||||
{
|
||||
}
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail)
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -811,7 +811,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
|||
public void SendEstateCovenantInformation(UUID covenant)
|
||||
{
|
||||
}
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail)
|
||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue