mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix nonfunctional wizard guard for wizards
This commit is contained in:
parent
6d983852d9
commit
d8670bae20
1 changed files with 11 additions and 11 deletions
22
src/p_map.c
22
src/p_map.c
|
|
@ -1397,6 +1397,17 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
|||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
||||
if (!P_MobjWasRemoved(thing) && !P_MobjWasRemoved(tm.thing))
|
||||
{
|
||||
if (thing->player->eggmanexplode)
|
||||
{
|
||||
K_EggmanTransfer(thing->player, tm.thing->player);
|
||||
} else if (tm.thing->player->eggmanexplode)
|
||||
{
|
||||
K_EggmanTransfer(tm.thing->player, thing->player);
|
||||
}
|
||||
}
|
||||
|
||||
// The bump has to happen last
|
||||
if (P_IsObjectOnGround(thing) && tm.thing->momz < 0 && tm.thing->player->trickpanel)
|
||||
{
|
||||
|
|
@ -1412,17 +1423,6 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
|||
K_PvPTouchDamage(tm.thing, thing);
|
||||
}
|
||||
|
||||
if (!P_MobjWasRemoved(thing) && !P_MobjWasRemoved(tm.thing))
|
||||
{
|
||||
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;
|
||||
}
|
||||
else if (thing->type == MT_SPECIAL_UFO)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue