From 6343eca464b0f64ffb164e6e7dcad7bd52801a98 Mon Sep 17 00:00:00 2001 From: Valentin Stark Date: Tue, 6 Sep 2022 21:16:57 +0200 Subject: [PATCH] nettoyage --- world/World3d.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/world/World3d.gd b/world/World3d.gd index 469051b..e96708d 100644 --- a/world/World3d.gd +++ b/world/World3d.gd @@ -116,13 +116,17 @@ func update_chunks(): for neighbour in neighbours: if( neighbour.x >= c_x - chunk_amount * 0.5 - and neighbour.x <= c_x + chunk_amount * 0.5 + and neighbour.x <= c_x + chunk_amount * 0.53 and neighbour.y >= c_z - chunk_amount * 0.5 and neighbour.y <= c_z + chunk_amount * 0.53 and not neighbour in used ): stack.append(neighbour) + + + + func clean_up_chunks(): for key in chunks: var chunk = chunks[key]