Skip to content

Commit ce759d7

Browse files
committedOct 29, 2015
Fix --{min,max}-y, thanks to @PilzAdam
1 parent 6e30d47 commit ce759d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎TileGenerator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void TileGenerator::loadBlocks()
320320
continue;
321321
}
322322
// Check that it's between --miny and --maxy
323-
if (pos.y < m_yMin * 16 || pos.y > m_yMax * 16) {
323+
if (pos.y * 16 < m_yMin || pos.y * 16 > m_yMax) {
324324
continue;
325325
}
326326
// Adjust minimum and maximum positions to the nearest block

0 commit comments

Comments
 (0)
Please sign in to comment.