Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Fishytza
Posts: 791
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: They/Them
Contact:

Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

Post by Fishytza »

https://github.com/ZDoom/gzdoom/blob/c0 ... ch.zs#L324
Which reads: target.DamageMobj (null, victim, 3, 'Melee');

Should be: victim.DamageMobj (null, target, 3, 'Melee');

Because the syntax for DamageMobj is
int DamageMobj(Actor inflictor, Actor source, int damage, Name mod, int flags = 0, double angle = 0);
Source: https://github.com/ZDoom/gzdoom/blob/c0 ... or.zs#L825

In this context, the source actor "target" is the whirlwind's owner, the ironlich
User avatar
Rachael
Posts: 13914
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

Post by Rachael »

Third time's a charm?
Post Reply

Return to “Closed Bugs [GZDoom]”