Skip to content

Commit

Permalink
Fixed: "Lift texture does not scroll down / up" (see here http://sour…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Jul 2, 2009
1 parent 0211e58 commit dd431e7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -2466,14 +2466,9 @@ static boolean findBottomTop(segsection_t section, float segOffset,
texOffset[VX] = suf->visOffset[VX] + segOffset;
texOffset[VY] = suf->visOffset[VY];

// Can't go over the back ceiling, would induce polygon flaws.
if(bfloor->visHeight > bceil->visHeight)
if(bfloor->visHeight > fceil->visHeight)
texOffset[VY] += bfloor->visHeight - bceil->visHeight;

// Can't go over front ceiling, would induce polygon flaws.
if(*top > fceil->visHeight)
texOffset[VY] += *top - fceil->visHeight;

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

0 comments on commit dd431e7

Please sign in to comment.