mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Remove p_sight assert
It's already returning false for an almost identical case. Just return false.
This commit is contained in:
parent
fd9ad6e17d
commit
d4e1c6cd84
1 changed files with 2 additions and 5 deletions
|
|
@ -639,14 +639,11 @@ static boolean P_CompareMobjsAcrossLines(mobj_t *t1, mobj_t *t2, register los_fu
|
|||
size_t pnum;
|
||||
|
||||
// First check for trivial rejection.
|
||||
if (!t1 || !t2)
|
||||
if (P_MobjWasRemoved(t1) == true || P_MobjWasRemoved(t2) == true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
I_Assert(!P_MobjWasRemoved(t1));
|
||||
I_Assert(!P_MobjWasRemoved(t2));
|
||||
|
||||
if (!t1->subsector || !t2->subsector
|
||||
|| !t1->subsector->sector || !t2->subsector->sector)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue