* For your fragging desire, damage enabled land works, but watch out!, life does not regenerate until you're dead!

This commit is contained in:
Teravus Ovares
2008-05-03 15:39:40 +00:00
parent 07167c9a3f
commit e8acb49fef
9 changed files with 173 additions and 5 deletions

View File

@@ -336,6 +336,11 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{
if (over.landData.localID == landData.localID)
{
if ((over.landData.landFlags & (uint)Parcel.ParcelFlags.AllowDamage) != 0)
avatars[i].Invulnerable = false;
else
avatars[i].Invulnerable = true;
sendLandUpdateToClient(avatars[i].ControllingClient);
}
}