Skip to content

Commit

Permalink
Fixed|Renderer: AV MAP15 midbar lava trap
Browse files Browse the repository at this point in the history
Render hack with masked middle textures. Bars that rise from lava to trap the player in Alien Vendetta MAP11.

IssueID #2370
  • Loading branch information
skyjake committed Dec 30, 2019
1 parent e518130 commit b1eabb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/apps/client/src/render/walledge.cpp
Expand Up @@ -344,7 +344,8 @@ struct WallEdge::Impl : public IHPlane

const bool isExtendedMasked = middle.hasMaterial() &&
!middle.materialAnimator()->isOpaque() &&
!lineSide.top().hasMaterial();
!lineSide.top().hasMaterial() &&
lineSide.sector().ceiling().surface().material().isSkyMasked();

if (!line.isSelfReferencing() && ffloor == &subsec.sector().floor())
{
Expand Down Expand Up @@ -420,7 +421,7 @@ struct WallEdge::Impl : public IHPlane
}
}
}

// Icarus map01: force fields use a masked middle texture that expands above the sector
if (isExtendedMasked)
{
Expand All @@ -429,7 +430,7 @@ struct WallEdge::Impl : public IHPlane
hi = lo + middle.material().height();
}
}

break; }
}
}
Expand Down

0 comments on commit b1eabb7

Please sign in to comment.