Skip to content

Commit

Permalink
Fixed mixup in previous commit. Now working correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 6, 2010
1 parent 992d5c3 commit 6081c02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -2509,10 +2509,13 @@ boolean R_FindBottomTop(segsection_t section, float segOffset,
texOffset[VX] = suf->visOffset[VX] + segOffset;
texOffset[VY] = suf->visOffset[VY];

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

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

return true;
}
break;
Expand Down

0 comments on commit 6081c02

Please sign in to comment.