mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
UCRP_HITMIDAIR: Don't count hitting yourself
This commit is contained in:
parent
83acdaa0cf
commit
0f06807c65
1 changed files with 1 additions and 0 deletions
|
|
@ -2690,6 +2690,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
||||||
if (source && source->player)
|
if (source && source->player)
|
||||||
{
|
{
|
||||||
if (source->player->roundconditions.hit_midair == false
|
if (source->player->roundconditions.hit_midair == false
|
||||||
|
&& source != target
|
||||||
&& inflictor
|
&& inflictor
|
||||||
&& K_IsMissileOrKartItem(inflictor)
|
&& K_IsMissileOrKartItem(inflictor)
|
||||||
&& target->player->airtime > TICRATE/2
|
&& target->player->airtime > TICRATE/2
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue