mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- the sector variables are still needed.
This commit is contained in:
parent
fb86f397a0
commit
625e9f2525
1 changed files with 3 additions and 1 deletions
|
@ -852,10 +852,12 @@ int P_CheckSight (AActor *t1, AActor *t2, int flags)
|
|||
return false;
|
||||
}
|
||||
|
||||
auto s1 = t1->Sector;
|
||||
auto s2 = t2->Sector;
|
||||
//
|
||||
// check for trivial rejection
|
||||
//
|
||||
if (!level.CheckReject(t1->Sector, t2->Sector))
|
||||
if (!level.CheckReject(s1, s2))
|
||||
{
|
||||
sightcounts[0]++;
|
||||
res = false; // can't possibly be connected
|
||||
|
|
Loading…
Reference in a new issue