rename generator/Structure to generator/VoxelStructure

This commit is contained in:
MihailRis
2024-09-12 11:01:19 +03:00
parent 8516cf4f7f
commit 390a16ace1
4 changed files with 14 additions and 13 deletions
+3 -2
View File
@@ -13,7 +13,7 @@
static debug::Logger logger("world-generator");
static inline constexpr uint MAX_PARAMETERS = 16;
static inline constexpr uint MAX_PARAMETERS = 8;
static inline constexpr uint MAX_CHUNK_PROTOTYPE_LEVELS = 8;
WorldGenerator::WorldGenerator(
@@ -136,7 +136,8 @@ void WorldGenerator::generateHeightmap(
void WorldGenerator::update(int centerX, int centerY, int loadDistance) {
surroundMap.setCenter(centerX, centerY);
surroundMap.resize(loadDistance + 1 /* additional safety padding */);
// 1 is safety padding preventing ChunksController rounding problem
surroundMap.resize(loadDistance + 1);
surroundMap.setCenter(centerX, centerY);
}