mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Validate PvPTouchDamage (crash fix)
This commit is contained in:
parent
0e1f688139
commit
a2bcee60c0
1 changed files with 4 additions and 0 deletions
|
|
@ -1042,6 +1042,10 @@ boolean K_PvPTouchDamage(mobj_t *t1, mobj_t *t2)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// What the fuck is calling this with stale refs? Whatever, validation's cheap.
|
||||||
|
if (P_MobjWasRemoved(t1) || P_MobjWasRemoved(t2) || !t1->player || !t2->player)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Clash instead of damage if both parties have any of these conditions
|
// Clash instead of damage if both parties have any of these conditions
|
||||||
auto canClash = [](mobj_t *t1, mobj_t *t2)
|
auto canClash = [](mobj_t *t1, mobj_t *t2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue