From fddd7f761176bb45cfdd41eeccaeadac22d33ddf Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 19 Mar 2025 18:07:51 +0500 Subject: Fix things and improve worldgen - Client-side now actually deletes invisible chunks - Improved world generation to use a second noise generator alongside changing how caves are generated (ie what noise they use) --- game/client/chunk_mesher.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'game/client/chunk_mesher.cc') diff --git a/game/client/chunk_mesher.cc b/game/client/chunk_mesher.cc index 1eb14c1..011d6a7 100644 --- a/game/client/chunk_mesher.cc +++ b/game/client/chunk_mesher.cc @@ -10,7 +10,6 @@ #include "shared/voxel_registry.hh" #include "client/chunk_quad.hh" -#include "client/chunk_visibility.hh" #include "client/globals.hh" #include "client/session.hh" #include "client/voxel_atlas.hh" @@ -222,9 +221,9 @@ void GL_MeshingTask::finalize(void) } } - if(has_no_submeshes_b && has_no_submeshes_nb) + if(has_no_submeshes_b && has_no_submeshes_nb) { globals::dimension->chunks.remove(m_entity); - else chunk_visibility::update_chunk(m_entity); + } } bool GL_MeshingTask::vis_test(voxel_id voxel, const VoxelInfo *info, const local_pos &lpos) const -- cgit