DoKill bug

-Fixed: DoKill did not target 'killtarget' for missiles, causing crashes and making the function not work properly.
This commit is contained in:
MajorCooke 2014-10-07 11:33:08 -05:00
parent 981b5f32e0
commit 47029a3efc

View file

@ -5002,7 +5002,7 @@ static void DoKill(AActor *killtarget, AActor *self, FName damagetype, int flags
//since that's the whole point of it.
if ((!(killtarget->flags2 & MF2_INVULNERABLE) || (flags & KILS_FOILINVUL)) && !(killtarget->flags5 & MF5_NODAMAGE))
{
P_ExplodeMissile(self->target, NULL, NULL);
P_ExplodeMissile(killtarget, NULL, NULL);
}
}
if (!(flags & KILS_NOMONSTERS))