Don't kill-confirm suicide

This commit is contained in:
AJ Martinez 2023-09-22 18:20:14 -07:00
parent 83cbdb4601
commit 629e9d39ba

View file

@ -1432,7 +1432,7 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
ACS_RunPlayerDeathScript(target->player);
}
if (source && target && target->player && source->player)
if (source && target && target->player && source->player && (target->player != source->player))
P_PlayVictorySound(source); // Killer laughs at you. LAUGHS! BWAHAHAHA!
// Other death animation effects