fix "upgrade square is not fully inside of area" error

This commit is contained in:
MihailRis
2025-04-10 23:10:49 +03:00
parent 8a21bd212c
commit bf79f6bc75
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -355,8 +355,9 @@ void WorldGenerator::generateHeightmap(
void WorldGenerator::update(int centerX, int centerY, int loadDistance) {
surroundMap.setCenter(centerX, centerY);
// 2 is safety padding preventing ChunksController rounding problem
surroundMap.resize(loadDistance + 2);
// 3 is safety padding preventing ChunksController rounding problem
// FIXME
surroundMap.resize(loadDistance + 3);
surroundMap.setCenter(centerX, centerY);
}