- fixed typo in sight checking code.

This commit is contained in:
Christoph Oelckers 2018-11-07 00:12:03 +01:00 committed by drfrag666
parent a42f30b3ea
commit b6e032e9ae

View file

@ -594,7 +594,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);
@ -644,7 +644,8 @@ 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);