add a missing update to avatar damage Invulnerable
parent
2bb467e358
commit
d6d3e14f29
|
@ -55,6 +55,7 @@ namespace OpenSim.Framework
|
|||
/// </summary>
|
||||
bool IsChildAgent { get; }
|
||||
|
||||
bool Invulnerable { get; set; }
|
||||
/// <summary>
|
||||
/// Avatar appearance data.
|
||||
/// </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)
|
||||
{
|
||||
remote_client.SceneAgent.Invulnerable =
|
||||
!m_scene.RegionInfo.RegionSettings.AllowDamage ||
|
||||
(m_landData.Flags & (uint)ParcelFlags.AllowDamage) == 0;
|
||||
|
||||
if (remote_client.SceneAgent.PresenceType == PresenceType.Npc)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue