From 7225c44bd8ed6e119590b8ea05d314a98ea391a6 Mon Sep 17 00:00:00 2001 From: Valentin Stark Date: Tue, 6 Sep 2022 22:07:38 +0200 Subject: [PATCH] resolution d'un bug --- utils/world_generation/WorldGeneration.gd | 2 +- world/World3d.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/world_generation/WorldGeneration.gd b/utils/world_generation/WorldGeneration.gd index 2daf6e4..bc8fa34 100644 --- a/utils/world_generation/WorldGeneration.gd +++ b/utils/world_generation/WorldGeneration.gd @@ -272,7 +272,7 @@ func fill_oceans(): stack.append(first_center.get_index()) while stack.size(): - var current_point_id = stack.pop_front() + var current_point_id = stack.pop_back() Global.terrain.get_point(current_point_id).set_data("ocean", true) for neighbour in Global.terrain.get_point(current_point_id).points_around(): if neighbour.get_data("water") and not neighbour.get_data("ocean"): diff --git a/world/World3d.gd b/world/World3d.gd index fc62da8..b8e2e2d 100644 --- a/world/World3d.gd +++ b/world/World3d.gd @@ -10,7 +10,7 @@ var thread func _ready(): # add_world() thread = Thread.new() - add_trees() + # add_trees() func add_world(): var terrain_mesh = TerrainMesh.new()