Skip to content

Commit

Permalink
Fix --drawplayers
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 21, 2022
1 parent d75266e commit 18f0615
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TileGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,13 @@ void TileGenerator::renderOrigin()
m_image->drawCircle(getImageX(0, true), getImageY(0, true), 12, m_originColor);
}

void TileGenerator::renderPlayers(const std::string &inputPath)
void TileGenerator::renderPlayers(const std::string &input_path)
{
PlayerAttributes players(inputPath);
std::string input = input_path;
if (input.back() != PATH_SEPARATOR)
input += PATH_SEPARATOR;

PlayerAttributes players(input);
for (auto &player : players) {
if (player.x < m_xMin * 16 || player.x > m_xMax * 16 ||
player.z < m_zMin * 16 || player.z > m_zMax * 16)
Expand Down

0 comments on commit 18f0615

Please sign in to comment.