mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
//maze3d: Fix accidental global variable definition
This commit is contained in:
parent
f37a2aabcf
commit
1f4a115063
1 changed files with 1 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
----------------------------------
|
----------------------------------
|
||||||
-- function to print out the world
|
-- 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 z = 0, d - 1, 1 do
|
||||||
for y = 0, h - 1, 1 do
|
for y = 0, h - 1, 1 do
|
||||||
local line = ""
|
local line = ""
|
||||||
|
@ -18,9 +18,6 @@ function printspace3d(space, w, h, d)
|
||||||
end
|
end
|
||||||
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)
|
local function generate_maze3d(seed, width, height, depth, path_length, path_width, path_depth)
|
||||||
|
|
||||||
if not path_length then path_length = 2 end
|
if not path_length then path_length = 2 end
|
||||||
|
|
Loading…
Reference in a new issue