mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
PIT_CheckThing valid checks more consistent
This commit is contained in:
parent
d053d5f8ba
commit
052e72c409
1 changed files with 4 additions and 7 deletions
11
src/p_map.c
11
src/p_map.c
|
|
@ -530,17 +530,14 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
||||||
if (tmthing == NULL || P_MobjWasRemoved(tmthing) == true)
|
if (tmthing == NULL || P_MobjWasRemoved(tmthing) == true)
|
||||||
return BMIT_STOP; // func just popped our tmthing, cannot continue.
|
return BMIT_STOP; // func just popped our tmthing, cannot continue.
|
||||||
|
|
||||||
|
// Ignore... things.
|
||||||
|
if (thing == NULL || P_MobjWasRemoved(thing) == true)
|
||||||
|
return BMIT_CONTINUE;
|
||||||
|
|
||||||
// don't clip against self
|
// don't clip against self
|
||||||
if (thing == tmthing)
|
if (thing == tmthing)
|
||||||
return BMIT_CONTINUE;
|
return BMIT_CONTINUE;
|
||||||
|
|
||||||
// Ignore... things.
|
|
||||||
if (!tmthing || !thing || P_MobjWasRemoved(thing))
|
|
||||||
return BMIT_CONTINUE;
|
|
||||||
|
|
||||||
I_Assert(!P_MobjWasRemoved(tmthing));
|
|
||||||
I_Assert(!P_MobjWasRemoved(thing));
|
|
||||||
|
|
||||||
// Ignore spectators
|
// Ignore spectators
|
||||||
if ((tmthing->player && tmthing->player->spectator)
|
if ((tmthing->player && tmthing->player->spectator)
|
||||||
|| (thing->player && thing->player->spectator))
|
|| (thing->player && thing->player->spectator))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue