Skip to content

Commit

Permalink
Fixed|Map Renderer: Seg fault attempting to play eternall.wad MAP10
Browse files Browse the repository at this point in the history
Discovered when testing sector cluster linking. This is however an
unrelated issue (see in-place comments as to the suspected culprit).
  • Loading branch information
danij-deng committed Aug 21, 2013
1 parent 612d87c commit 228f1ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/client/src/render/rend_main.cpp
Expand Up @@ -2020,6 +2020,14 @@ static bool coveredOpenRange(HEdge &hedge, coord_t middleBottomZ, coord_t middle
return wroteOpaqueMiddle;
}

/// @todo fixme: This additional test should not be necessary. For the obove
/// test to fail and this to pass means that the geometry produced by the BSP
/// builder is not correct (see: eternall.wad MAP10; note mapping errors).
if(!hedge.twin().hasFace())
{
return wroteOpaqueMiddle;
}

BspLeaf const *leaf = hedge.face().mapElement()->as<BspLeaf>();
BspLeaf const *backLeaf = hedge.twin().face().mapElement()->as<BspLeaf>();

Expand Down

0 comments on commit 228f1ba

Please sign in to comment.