- Fixed: Monsters should not check the inventory for damage absorbtion when
they have the MF5_NODAMAGE flag set. - Added patch for saving automap zoom. SVN r1587 (trunk)
This commit is contained in:
parent
eb52c9a90e
commit
b55ca6ffaa
5 changed files with 8 additions and 3 deletions
|
|
@ -1156,7 +1156,7 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage
|
|||
else
|
||||
{
|
||||
// Armor for monsters.
|
||||
if (!(flags & DMG_NO_ARMOR) && target->Inventory != NULL)
|
||||
if (!(flags & DMG_NO_ARMOR) && target->Inventory != NULL && damage > 0)
|
||||
{
|
||||
int newdam = damage;
|
||||
target->Inventory->AbsorbDamage (damage, mod, newdam);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue