Skip to content

Commit

Permalink
Fixed: Vertical alignment issue with materials on two-sided linedef l…
Browse files Browse the repository at this point in the history
…ower sections.
  • Loading branch information
danij-deng committed Apr 6, 2010
1 parent 97f8fa4 commit 992d5c3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -2509,12 +2509,9 @@ boolean R_FindBottomTop(segsection_t section, float segOffset,
texOffset[VX] = suf->visOffset[VX] + segOffset;
texOffset[VY] = suf->visOffset[VY];

if(bfloor->visHeight > fceil->visHeight)
texOffset[VY] += bfloor->visHeight - bceil->visHeight;

// Align with normal middle texture?
if(unpegBottom)
texOffset[VY] += (fceil->visHeight - bfloor->visHeight);
if(!unpegBottom && bfloor->visHeight > fceil->visHeight)
texOffset[VY] += -(fceil->visHeight - bfloor->visHeight);

return true;
}
Expand Down

0 comments on commit 992d5c3

Please sign in to comment.