//maze3d: Fix accidental global variable definition

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:46:33 +01:00
parent f37a2aabcf
commit 1f4a115063
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -5,7 +5,7 @@
----------------------------------
-- function to print out the world
----------------------------------
function printspace3d(space, w, h, d)
local function printspace3d(space, w, h, d)
for z = 0, d - 1, 1 do
for y = 0, h - 1, 1 do
local line = ""
@ -18,9 +18,6 @@ function printspace3d(space, w, h, d)
end
end
-- Initialise the world
start_time = worldeditadditions.get_ms_time()
local function generate_maze3d(seed, width, height, depth, path_length, path_width, path_depth)
if not path_length then path_length = 2 end