Call SpecialMissileHit directly with zero damaging missiles last to ensure the function is actually triggered.

This commit is contained in:
Major Cooke 2020-08-09 14:01:57 -05:00 committed by drfrag
parent 9e28aeac14
commit efe5f349e5

View file

@ -1540,7 +1540,8 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
// MBF bouncer might have a non-0 damage value, but they must not deal damage on impact either.
if ((tm.thing->BounceFlags & BOUNCE_Actors) && (tm.thing->IsZeroDamage() || !(tm.thing->flags & MF_MISSILE)))
{
return ((tm.thing->target == thing && !(tm.thing->flags8 & MF8_HITOWNER)) || !(thing->flags & MF_SOLID));
return (((tm.thing->target == thing && !(tm.thing->flags8 & MF8_HITOWNER)) || !(thing->flags & MF_SOLID)) &&
(tm.thing->SpecialMissileHit(thing) != 0));
}
switch (tm.thing->SpecialMissileHit(thing))