mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
- fixed: a sight check that starts right on a linedef should ignore that linedef.
Trying to calculate a slope to the target from this linedef's opening will always result in failure because it'd involve a division by zero.
This commit is contained in:
parent
b774fed93e
commit
3923039a1b
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,9 @@ bool SightCheck::PTR_SightTraverse (intercept_t *in)
|
|||
if (open.range == 0 && open.portalflags == 0 && (lport == NULL || lport->mType != PORTT_LINKED)) // quick test for totally closed doors (must be delayed if portal checks are needed, though)
|
||||
return false; // stop
|
||||
|
||||
if (in->frac == 0)
|
||||
return true;
|
||||
|
||||
// check bottom
|
||||
if (open.bottom > LINEOPEN_MIN)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue