- Fixed: Armor did not use damagefactor "Normal" as a fallback factor.
SVN r3469 (trunk)
This commit is contained in:
parent
bff5a9b8d8
commit
9fcc6ebc89
5 changed files with 29 additions and 10 deletions
|
|
@ -1000,8 +1000,7 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage
|
|||
DmgFactors *df = target->GetClass()->ActorInfo->DamageFactors;
|
||||
if (df != NULL)
|
||||
{
|
||||
fixed_t *pdf = df->CheckKey(mod);
|
||||
if (pdf== NULL && mod != NAME_None) pdf = df->CheckKey(NAME_None);
|
||||
fixed_t *pdf = df->CheckFactor(mod);
|
||||
if (pdf != NULL)
|
||||
{
|
||||
damage = FixedMul(damage, *pdf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue