mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_InstaWhipCollide: check P_DamageMobj succeeds before applying hitlag to attacker
This commit is contained in:
parent
2d4cc49101
commit
5d91834c60
1 changed files with 5 additions and 3 deletions
|
|
@ -950,10 +950,12 @@ boolean K_InstaWhipCollide(mobj_t *shield, mobj_t *victim)
|
|||
shield->extravalue1 = 1;
|
||||
}
|
||||
|
||||
P_DamageMobj(victim, shield, attacker, 1, DMG_NORMAL);
|
||||
if (P_DamageMobj(victim, shield, attacker, 1, DMG_NORMAL))
|
||||
{
|
||||
K_AddHitLag(attacker, attackerHitlag, false);
|
||||
shield->hitlag = attacker->hitlag;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue