Skip to content

Commit

Permalink
Vertex: Fixed oversight in the previous cleanup refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Mar 11, 2013
1 parent e733c02 commit 196bb03
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions doomsday/client/src/map/vertex.cpp
Expand Up @@ -57,19 +57,21 @@ void Vertex::countLineOwners(uint *oneSided, uint *twoSided) const

uint ones = 0, twos = 0;

LineOwner const *firstOwn = firstLineOwner();
LineOwner const *own = firstOwn;
do
if(LineOwner const *firstOwn = firstLineOwner())
{
if(!own->lineDef().L_frontsidedef || !own->lineDef().L_backsidedef)
LineOwner const *own = firstOwn;
do
{
++ones;
}
else
{
++twos;
}
} while((own = &own->next()) != firstOwn);
if(!own->lineDef().L_frontsidedef || !own->lineDef().L_backsidedef)
{
++ones;
}
else
{
++twos;
}
} while((own = &own->next()) != firstOwn);
}

if(oneSided) *oneSided += ones;
if(twoSided) *twoSided += twos;
Expand Down

0 comments on commit 196bb03

Please sign in to comment.