- 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:
Christoph Oelckers 2009-05-15 22:06:44 +00:00
commit b55ca6ffaa
5 changed files with 8 additions and 3 deletions

View file

@ -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);