diff options
Diffstat (limited to 'indexer/cell_coverer.hpp')
-rw-r--r-- | indexer/cell_coverer.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/cell_coverer.hpp b/indexer/cell_coverer.hpp index 0bd59b5821..bd643da8b7 100644 --- a/indexer/cell_coverer.hpp +++ b/indexer/cell_coverer.hpp @@ -26,7 +26,7 @@ inline void SplitRectCell(CellIdT id, template <typename BoundsT, typename CellIdT> inline void CoverRect(CoordT minX, CoordT minY, CoordT maxX, CoordT maxY, - size_t cells_count, + size_t cells_count, int maxDepth, vector<CellIdT> & cells) { ASSERT_LESS(minX, maxX, ()); @@ -53,7 +53,7 @@ inline void CoverRect(CoordT minX, CoordT minY, CellIdT id = cellQueue.front(); cellQueue.pop(); - if (id.Level() == CellIdT::DEPTH_LEVELS - 1) + if (id.Level() == maxDepth - 1) { result.push_back(id); break; @@ -85,7 +85,7 @@ inline void CoverRect(CoordT minX, CoordT minY, for (size_t i = 0; i < result.size(); ++i) { CellIdT id = result[i]; - while (id.Level() < CellIdT::DEPTH_LEVELS - 1) + while (id.Level() < maxDepth - 1) { vector<CellIdT> children; SplitRectCell<BoundsT>(id, minX, minY, maxX, maxY, children); |