UCRP_HITMIDAIR: Don't count hitting yourself

This commit is contained in:
toaster 2023-10-18 02:05:33 +01:00
parent 83acdaa0cf
commit 0f06807c65

View file

@ -2690,6 +2690,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
if (source && source->player)
{
if (source->player->roundconditions.hit_midair == false
&& source != target
&& inflictor
&& K_IsMissileOrKartItem(inflictor)
&& target->player->airtime > TICRATE/2