Skip to content

Commit

Permalink
Sector|World: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 18, 2013
1 parent 337db61 commit def4e93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions doomsday/client/src/render/rend_main.cpp
Expand Up @@ -3191,6 +3191,9 @@ static void Rend_DrawSurfaceVectors(Map &map)
Vector3d origin;
foreach(BspLeaf *bspLeaf, map.bspLeafs())
{
if(!bspLeaf->hasSector() || bspLeaf->isDegenerate())
continue;

HEdge *base = bspLeaf->poly().hedge();
HEdge *hedge = base;
do
Expand Down
10 changes: 5 additions & 5 deletions doomsday/client/src/world/sector.cpp
Expand Up @@ -61,12 +61,12 @@ Plane &Sector::Cluster::visPlane(int planeIndex) const

AABoxd const &Sector::Cluster::aaBox() const
{
// If an bounding box is assigned - use it.
// If a bounding box is assigned - use it.
if(!_aaBox.isNull())
{
return *_aaBox;
}
// Otherwise it means the cluser is comprised of a single BSP leaf, so we
// Otherwise it means the cluster is comprised of a single BSP leaf, so we
// can use the bounding box of the leaf's geometry directly.
DENG_ASSERT(_bspLeafs.count() == 1); // sanity check
return _bspLeafs.first()->poly().aaBox();
Expand Down Expand Up @@ -226,9 +226,9 @@ DENG2_OBSERVES(Plane, HeightChange)
roughArea = 0;
foreach(Cluster *cluster, clusters)
{
AABoxd const &leafAABox = cluster->aaBox();
roughArea += (leafAABox.maxX - leafAABox.minX) *
(leafAABox.maxY - leafAABox.minY);
AABoxd const &clusterAABox = cluster->aaBox();
roughArea += (clusterAABox.maxX - clusterAABox.minX) *
(clusterAABox.maxY - clusterAABox.minY);
}
}

Expand Down

0 comments on commit def4e93

Please sign in to comment.