Skip to content

Commit

Permalink
Gloom: Conflicting variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 58acd0f commit 745ac2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions doomsday/apps/gloom/gloom/world/mapimport.cpp
Expand Up @@ -374,18 +374,18 @@ DENG2_PIMPL_NOREF(MapImport)
}
}

for (int i = 0; i < mappedSectors.size(); ++i)
for (int secIndex = 0; secIndex < mappedSectors.size(); ++secIndex)
{
const auto &ms = mappedSectors[i];
const auto &ms = mappedSectors[secIndex];

const ID currentSector = ms.sector;

qDebug("Sector %i: boundary lines %i, points %i",
i,
secIndex,
ms.boundaryLines.size(),
ms.points.size());

// TODO: Add a Contours class that manages multilpe Countour objects.
// TODO: Add a Contours class that manages multiple Contour objects.

QVector<Contour> contours;
QVector<ID> remainingLines = ms.boundaryLines;
Expand Down Expand Up @@ -420,9 +420,9 @@ DENG2_PIMPL_NOREF(MapImport)
}
}

for (int i = 0; i < contours.size(); ++i)
for (auto &cont : contours)
{
contours[i].makePolygon(map, currentSector);
cont.makePolygon(map, currentSector);
}

// Determine the containment hierarchy.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/gloom/gloom/world/mapimport.h
Expand Up @@ -34,7 +34,7 @@ using namespace de;
class MapImport
{
public:
MapImport(const res::LumpCatalog &lumps);
explicit MapImport(const res::LumpCatalog &lumps);

bool importMap(const String &mapId);

Expand Down

0 comments on commit 745ac2e

Please sign in to comment.