Skip to content

Commit

Permalink
Rename tilePositions() to sortPositionsIntoTiles()
Browse files Browse the repository at this point in the history
the first name was confusing.
  • Loading branch information
Martijn Versteegh authored and Martijn Versteegh committed Nov 26, 2018
1 parent 82b3c04 commit 32a8eef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TileGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/TileGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32a8eef

Please sign in to comment.