Fix --{min,max}-y, thanks to @PilzAdam

This commit is contained in:
sfan5 2015-10-29 23:13:41 +01:00
parent 6e30d4702c
commit ce759d7724

@ -320,7 +320,7 @@ void TileGenerator::loadBlocks()
continue; continue;
} }
// Check that it's between --miny and --maxy // 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; continue;
} }
// Adjust minimum and maximum positions to the nearest block // Adjust minimum and maximum positions to the nearest block