mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
add a missing update to avatar damage Invulnerable
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user