mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
//floodfill: remove debug
This commit is contained in:
parent
d1b0866af2
commit
fc2444c5cd
1 changed files with 1 additions and 5 deletions
|
@ -27,16 +27,12 @@ function worldeditadditions.floodfill(start_pos, radius, replace_node)
|
|||
end
|
||||
|
||||
local count = 0
|
||||
local remaining_nodes = wea.Queue.new()
|
||||
print("DEBUG enqueue start_pos_index", start_pos_index)
|
||||
print("DEBUG enqueued id", remaining_nodes:enqueue(start_pos_index))
|
||||
local remaining_nodes = wea.Queue.new() remaining_nodes:enqueue(start_pos_index)
|
||||
|
||||
-- Do the floodfill
|
||||
while remaining_nodes:is_empty() == false do
|
||||
local cur = remaining_nodes:dequeue()
|
||||
|
||||
print("DEBUG cur", cur)
|
||||
|
||||
-- Replace this node
|
||||
data[cur] = replace_id
|
||||
count = count + 1
|
||||
|
|
Loading…
Reference in a new issue