Skip to content

Commit

Permalink
World|Sector: Skip self-referencing lines in the void when mapping se…
Browse files Browse the repository at this point in the history
…ctor clusters

A particularly nasty mapping error where sectors comprised of only
self-referencing lines exist in the void cannot and should not have
their visual planes mapped (e.g., ksutra.wad MAP05 sector #137).
  • Loading branch information
danij-deng committed Aug 21, 2013
1 parent 228f1ba commit fb0b709
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/client/src/world/sector.cpp
Expand Up @@ -87,7 +87,9 @@ void Sector::Cluster::remapVisPlanes()
if(Line::Side::Segment *seg = hedge->mapElement()->as<Line::Side::Segment>())
{
Line::Side &lineSide = seg->lineSide();
if(!lineSide.line().isSelfReferencing())
if(!lineSide.line().isSelfReferencing()
// Self-referencing lines in the void have no back geometry.
|| !hedge->twin().hasFace())
{
permaLink = false;
}
Expand Down

0 comments on commit fb0b709

Please sign in to comment.