mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- fixed typo in sight checking code.
This commit is contained in:
parent
a42f30b3ea
commit
b6e032e9ae
1 changed files with 3 additions and 2 deletions
|
@ -594,7 +594,7 @@ bool SightCheck::P_SightTraverseIntercepts ()
|
|||
|
||||
for (auto rover : lastsector->e->XFloor.ffloors)
|
||||
{
|
||||
if ((rover->flags & FF_SOLID) == myseethrough || !(rover->flags & FF_EXISTS)) continue;
|
||||
if ((rover->flags & FF_SEETHROUGH) == myseethrough || !(rover->flags & FF_EXISTS)) continue;
|
||||
if ((Flags & SF_IGNOREWATERBOUNDARY) && (rover->flags & FF_SOLID) == 0) continue;
|
||||
|
||||
double ff_bottom = rover->bottom.plane->ZatPoint(seeingthing);
|
||||
|
@ -644,7 +644,8 @@ bool SightCheck::P_SightPathTraverse ()
|
|||
for(auto rover : lastsector->e->XFloor.ffloors)
|
||||
{
|
||||
if(!(rover->flags & FF_EXISTS)) continue;
|
||||
|
||||
if ((Flags & SF_IGNOREWATERBOUNDARY) && (rover->flags & FF_SOLID) == 0) continue;
|
||||
|
||||
double ff_bottom=rover->bottom.plane->ZatPoint(sightstart);
|
||||
double ff_top=rover->top.plane->ZatPoint(sightstart);
|
||||
|
||||
|
|
Loading…
Reference in a new issue