Skip to content

Commit

Permalink
Fixed occlusion bug when eye Z == plane Z
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 3, 2003
1 parent abc9d25 commit 3b93562
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/Src/rend_main.c
Expand Up @@ -752,8 +752,8 @@ void Rend_OccludeSubsector(subsector_t *sub, boolean forward_facing)
if(back->floorpic != skyflatnum || front->floorpic != skyflatnum)
{
// Do the floors create an occlusion?
if(backh[0] > fronth[0] && vy < backh[0]
|| backh[0] < fronth[0] && vy > fronth[0])
if(backh[0] > fronth[0] && vy <= backh[0]
|| backh[0] < fronth[0] && vy >= fronth[0])
{
C_AddViewRelOcclusion(startv, endv,
MAX_OF(fronth[0], backh[0]), false); // Occlude down.
Expand All @@ -763,8 +763,8 @@ void Rend_OccludeSubsector(subsector_t *sub, boolean forward_facing)
if(back->ceilingpic != skyflatnum || front->ceilingpic != skyflatnum)
{
// Do the ceilings create an occlusion?
if(backh[1] < fronth[1] && vy > backh[1]
|| backh[1] > fronth[1] && vy < fronth[1])
if(backh[1] < fronth[1] && vy >= backh[1]
|| backh[1] > fronth[1] && vy <= fronth[1])
{
C_AddViewRelOcclusion(startv, endv,
MIN_OF(fronth[1], backh[1]), true); // Occlude up.
Expand Down

0 comments on commit 3b93562

Please sign in to comment.