mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
- fixed typo in sight checking code.
This commit is contained in:
parent
c28f001cb2
commit
752a64c840
1 changed files with 3 additions and 2 deletions
|
@ -587,7 +587,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);
|
||||
|
@ -637,6 +637,7 @@ 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