Skip to content

Commit

Permalink
Fix --{min,max}-y, thanks to @PilzAdam
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 29, 2015
1 parent 6e30d47 commit ce759d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TileGenerator.cpp
Expand Up @@ -320,7 +320,7 @@ void TileGenerator::loadBlocks()
continue;
}
// Check that it's between --miny and --maxy
if (pos.y < m_yMin * 16 || pos.y > m_yMax * 16) {
if (pos.y * 16 < m_yMin || pos.y * 16 > m_yMax) {
continue;
}
// Adjust minimum and maximum positions to the nearest block
Expand Down

0 comments on commit ce759d7

Please sign in to comment.