From ce759d7724a9a8c9499acc360ecc84acffbb3a2e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 29 Oct 2015 23:13:41 +0100 Subject: [PATCH] Fix --{min,max}-y, thanks to @PilzAdam --- TileGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index 440bbfd..44ffcba 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -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