mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix null ref in eggman transfer
This commit is contained in:
parent
216e4064dc
commit
6d983852d9
1 changed files with 8 additions and 5 deletions
13
src/p_map.c
13
src/p_map.c
|
|
@ -1412,12 +1412,15 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
|||
K_PvPTouchDamage(tm.thing, thing);
|
||||
}
|
||||
|
||||
if (thing->player->eggmanexplode)
|
||||
if (!P_MobjWasRemoved(thing) && !P_MobjWasRemoved(tm.thing))
|
||||
{
|
||||
K_EggmanTransfer(thing->player, tm.thing->player);
|
||||
} else if (tm.thing->player->eggmanexplode)
|
||||
{
|
||||
K_EggmanTransfer(tm.thing->player, thing->player);
|
||||
if (thing->player->eggmanexplode)
|
||||
{
|
||||
K_EggmanTransfer(thing->player, tm.thing->player);
|
||||
} else if (tm.thing->player->eggmanexplode)
|
||||
{
|
||||
K_EggmanTransfer(tm.thing->player, thing->player);
|
||||
}
|
||||
}
|
||||
|
||||
return BMIT_CONTINUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue