- some redesign of P_CheckSight to handle portals.

Portal stuff not tested yet.
This commit is contained in:
Christoph Oelckers 2016-03-07 21:58:34 +01:00
commit 3c25b2c066
11 changed files with 268 additions and 65 deletions

View file

@ -162,7 +162,7 @@ void P_LineOpening (FLineOpening &open, AActor *actor, const line_t *linedef,
front = linedef->frontsector;
back = linedef->backsector;
if (!(flags & FFCF_NOPORTALS))
if (!(flags & FFCF_NOPORTALS) && (linedef->flags & ML_PORTALCONNECT))
{
if (!linedef->frontsector->PortalBlocksMovement(sector_t::ceiling)) fc = FIXED_MAX;
if (!linedef->backsector->PortalBlocksMovement(sector_t::ceiling)) bc = FIXED_MAX;