Skip to content

Commit

Permalink
Map Renderer|WallEdge|Client: Use line side sectors when positioning …
Browse files Browse the repository at this point in the history
…two-sided middle wall sections
  • Loading branch information
danij-deng committed Aug 30, 2013
1 parent ef8d6d3 commit 939a255
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doomsday/client/src/render/walledge.cpp
Expand Up @@ -251,7 +251,8 @@ DENG2_PIMPL(WallEdge), public IHPlane
break;

case LineSide::Middle: {
Surface const &middle = seg.lineSide().middle();
LineSide const &lineSide = seg.lineSide();
Surface const &middle = lineSide.middle();

if(!line.isSelfReferencing())
{
Expand All @@ -260,8 +261,9 @@ DENG2_PIMPL(WallEdge), public IHPlane
}
else
{
lo = ffloor->visHeight();
hi = bceil->visHeight();
// Use the unmapped heights for positioning purposes.
lo = lineSide.sector().floor().visHeight();
hi = lineSide.back().sector().ceiling().visHeight();
}

materialOrigin = Vector2f(middle.visMaterialOrigin().x, 0);
Expand All @@ -279,7 +281,7 @@ DENG2_PIMPL(WallEdge), public IHPlane
else
{
openBottom = ffloor->visHeight();
openTop = fceil->visHeight();
openTop = bceil->visHeight();
}

if(openTop > openBottom)
Expand Down

0 comments on commit 939a255

Please sign in to comment.