add a missing update to avatar damage Invulnerable
parent
2bb467e358
commit
d6d3e14f29
|
@ -55,6 +55,7 @@ namespace OpenSim.Framework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
bool IsChildAgent { get; }
|
bool IsChildAgent { get; }
|
||||||
|
|
||||||
|
bool Invulnerable { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Avatar appearance data.
|
/// Avatar appearance data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -374,6 +374,10 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client)
|
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client)
|
||||||
{
|
{
|
||||||
|
remote_client.SceneAgent.Invulnerable =
|
||||||
|
!m_scene.RegionInfo.RegionSettings.AllowDamage ||
|
||||||
|
(m_landData.Flags & (uint)ParcelFlags.AllowDamage) == 0;
|
||||||
|
|
||||||
if (remote_client.SceneAgent.PresenceType == PresenceType.Npc)
|
if (remote_client.SceneAgent.PresenceType == PresenceType.Npc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue