- added DAMAGE_NO_ARMOR flag for ACS's SectorDamage function.

This commit is contained in:
Christoph Oelckers 2017-02-25 19:10:49 +01:00
commit 8dac678200
5 changed files with 23 additions and 23 deletions

View file

@ -466,7 +466,8 @@ static void DoSectorDamage(AActor *actor, sector_t *sec, int amount, FName type,
return;
}
P_DamageMobj (actor, NULL, NULL, amount, type);
int dflags = (flags & DAMAGE_NO_ARMOR) ? DMG_NO_ARMOR : 0;
P_DamageMobj (actor, NULL, NULL, amount, type, dflags);
}
void P_SectorDamage(int tag, int amount, FName type, PClassActor *protectClass, int flags)