Skip to content

Commit

Permalink
Fixed BSP sight ray intercept when flagged LS_PASSLEFT.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Nov 18, 2009
1 parent aa04eac commit cf55b7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doomsday/engine/portable/src/p_sight.c
Expand Up @@ -118,9 +118,12 @@ static boolean crossLineDef(const linedef_t* li, byte side, losdata_t* los)

fsec = li->L_sector(side);
bsec = (li->L_backside? li->L_sector(side^1) : NULL);
noBack = (!li->L_backside ||
!(bsec->SP_floorheight < fsec->SP_ceilheight) ||
!(fsec->SP_floorheight < bsec->SP_ceilheight));
noBack = li->L_backside? false : true;

if(!noBack && !(los->flags & LS_PASSLEFT) &&
(!(bsec->SP_floorheight < fsec->SP_ceilheight) ||
!(fsec->SP_floorheight < bsec->SP_ceilheight)))
noBack = true;

if(noBack)
{
Expand Down

0 comments on commit cf55b7b

Please sign in to comment.