From 32a8eefc808e988aafea25f8abd11bb9bb959ffd Mon Sep 17 00:00:00 2001 From: Martijn Versteegh Date: Mon, 26 Nov 2018 22:29:38 +0100 Subject: [PATCH] Rename tilePositions() to sortPositionsIntoTiles() the first name was confusing. --- TileGenerator.cpp | 5 +++-- include/TileGenerator.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index ea5840a..ece4936 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -264,7 +264,8 @@ void TileGenerator::generate(const std::string &input, const std::string &output if (m_tileW < INT_MAX || m_tileH < INT_MAX) { - tilePositions(); + + sortPositionsIntoTiles(); int trueXMin = m_xMin; int trueZMin = m_zMin; @@ -765,7 +766,7 @@ inline void TileGenerator::setZoomed(int x, int y, Color color) } -void TileGenerator::tilePositions() +void TileGenerator::sortPositionsIntoTiles() { m_numTilesX = round_multiple_nosign(m_xMax - m_xMin + 1, m_tileW) / m_tileW; m_numTilesY = round_multiple_nosign(m_zMax - m_zMin + 1, m_tileH) / m_tileH; diff --git a/include/TileGenerator.h b/include/TileGenerator.h index d8739e6..71422b0 100644 --- a/include/TileGenerator.h +++ b/include/TileGenerator.h @@ -95,7 +95,7 @@ class TileGenerator void setZoom(int zoom); void setScales(uint flags); void setDontWriteEmpty(bool f); - void tilePositions(); + void sortPositionsIntoTiles(); private: void parseColorsStream(std::istream &in);