- fixed typo in sight checking code.

This commit is contained in:
Christoph Oelckers 2018-11-07 00:12:03 +01:00
parent c28f001cb2
commit 752a64c840

View file

@ -587,7 +587,7 @@ bool SightCheck::P_SightTraverseIntercepts ()
for (auto rover : lastsector->e->XFloor.ffloors) 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; if ((Flags & SF_IGNOREWATERBOUNDARY) && (rover->flags & FF_SOLID) == 0) continue;
double ff_bottom = rover->bottom.plane->ZatPoint(seeingthing); double ff_bottom = rover->bottom.plane->ZatPoint(seeingthing);
@ -637,6 +637,7 @@ bool SightCheck::P_SightPathTraverse ()
for(auto rover : lastsector->e->XFloor.ffloors) for(auto rover : lastsector->e->XFloor.ffloors)
{ {
if(!(rover->flags & FF_EXISTS)) continue; 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_bottom=rover->bottom.plane->ZatPoint(sightstart);
double ff_top=rover->top.plane->ZatPoint(sightstart); double ff_top=rover->top.plane->ZatPoint(sightstart);