mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Inventory damage needs multiplying first
This commit is contained in:
parent
99b2cfa147
commit
e303833e5f
1 changed files with 1 additions and 1 deletions
|
@ -1069,11 +1069,11 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
|
|||
{
|
||||
int olddam = damage;
|
||||
|
||||
damage = FixedMul(damage, source->DamageMultiply);
|
||||
if (source->Inventory != NULL)
|
||||
{
|
||||
source->Inventory->ModifyDamage(olddam, mod, damage, false);
|
||||
}
|
||||
damage = FixedMul(damage, source->DamageMultiply);
|
||||
|
||||
if (olddam != damage && damage <= 0)
|
||||
{ // Still allow FORCEPAIN
|
||||
|
|
Loading…
Reference in a new issue