mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- fixed: A_ProgrammerMelee damaged the caller, not the target.
This commit is contained in:
parent
26f7902c3f
commit
62dd810a4e
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Programmer : Actor
|
|||
A_PlaySound("programmer/clank", CHAN_WEAPON);
|
||||
|
||||
int damage = ((random[Programmer]() % 10) + 1) * 6;
|
||||
int newdam = DamageMobj (self, self, damage, 'Melee');
|
||||
int newdam = target.DamageMobj (self, self, damage, 'Melee');
|
||||
target.TraceBleed (newdam > 0 ? newdam : damage, self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue