mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add AreaMap2D
This commit is contained in:
parent
f70ac5c190
commit
c3569b5dd4
11 changed files with 282 additions and 179 deletions
|
|
@ -86,7 +86,7 @@ void Level::loadMatrix(int32_t x, int32_t z, uint32_t radius) {
|
|||
(settings.chunks.loadDistance.get() + settings.chunks.padding.get()) *
|
||||
2LL
|
||||
);
|
||||
if (chunks->w != diameter) {
|
||||
if (chunks->getSize().x != diameter) {
|
||||
chunks->resize(diameter, diameter);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ void WorldGenerator::generateHeightmap(
|
|||
}
|
||||
|
||||
void WorldGenerator::generate(voxel* voxels, int chunkX, int chunkZ) {
|
||||
timeutil::ScopeLogTimer log(555);
|
||||
//timeutil::ScopeLogTimer log(555);
|
||||
|
||||
auto prototype = generatePrototype(chunkX, chunkZ);
|
||||
generateHeightmap(prototype.get(), chunkX, chunkZ);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue