Skip to content

Commit

Permalink
World|Sector: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 26, 2013
1 parent a1ee202 commit 71cc972
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions doomsday/client/src/world/sector.cpp
Expand Up @@ -65,27 +65,25 @@ void Sector::Cluster::remapVisPlanes()
{
if(hedge->mapElement())
{
// Abort if any map line lacks a back geometry.
if(!hedge->twin().hasFace())
return;

if(hedge->mapElement()->as<LineSideSegment>().line().isSelfReferencing())
{
if(hedge->twin().hasFace())
BspLeaf &otherLeaf = hedge->twin().face().mapElement()->as<BspLeaf>();
if(otherLeaf.hasCluster())
{
BspLeaf &otherLeaf = hedge->twin().face().mapElement()->as<BspLeaf>();
if(otherLeaf.hasCluster())
Cluster *otherCluster = &otherLeaf.cluster();
if(otherCluster != this &&
otherCluster->_mappedVisFloor != this &&
!(!_allSelfRefBoundary && otherCluster->_allSelfRefBoundary))
{
Cluster *otherCluster = &otherLeaf.cluster();
if(otherCluster != this &&
otherCluster->_mappedVisFloor != this &&
!(!_allSelfRefBoundary && otherCluster->_allSelfRefBoundary))
{
// Remember the exterior cluster.
exteriorCluster = otherCluster;
}
// Remember the exterior cluster.
exteriorCluster = otherCluster;
}
}
}
// Abort if any map line lacks a back geometry.
if(!hedge->twin().hasFace())
return;
}
} while((hedge = &hedge->next()) != base);
}
Expand All @@ -110,10 +108,6 @@ void Sector::Cluster::remapVisPlanes()
// a different cluster will be selected from the boundary).
exteriorCluster->_mappedVisFloor =
exteriorCluster->_mappedVisCeiling = 0;

// Cancel our own linkage too.
_mappedVisFloor = _mappedVisCeiling = 0;
return;
}
}

Expand Down

0 comments on commit 71cc972

Please sign in to comment.