Skip to content

Commit

Permalink
Fixed: Back segs of one-sided window tricks never intercept LOS rays.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Sep 8, 2009
1 parent 54d120d commit f602046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/engine/portable/src/p_sight.c
Expand Up @@ -113,6 +113,9 @@ static boolean crossLineDef(const linedef_t* li, byte side, losdata_t* los)
if(!interceptLineDef(li, los, &dl))
return true; // Ray does not intercept seg on the X/Y plane.

if(!li->L_side(side))
return true; // Seg is on the back side of a one-sided window.

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

0 comments on commit f602046

Please sign in to comment.