Skip to content

Commit

Permalink
Fix P_KillMobj in mbf21
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Apr 23, 2021
1 parent 714a30f commit c5d9930
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prboom2/src/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,12 @@ static void P_KillMobj(mobj_t *source, mobj_t *target)
// heretic
target->flags2 &= ~MF2_PASSMOBJ;

if (compatibility_level == mbf_compatibility &&
!prboom_comp[PC_MBF_REMOVE_THINKER_IN_KILLMOBJ].state)
if (
mbf21 || (
compatibility_level == mbf_compatibility &&
!prboom_comp[PC_MBF_REMOVE_THINKER_IN_KILLMOBJ].state
)
)
{
// killough 8/29/98: remove from threaded list
P_UpdateThinker(&target->thinker);
Expand Down

0 comments on commit c5d9930

Please sign in to comment.