main.lua: fix seed

This commit is contained in:
Starbeamrainbowlabs 2020-05-03 02:00:19 +01:00
parent 412ac4cb2e
commit 0cf62aadd7
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -12,6 +12,7 @@ local settings = {
height = 11,
depth = 7,
seed = os.time(),
filename = "maze.scad",
scale = 5,
@ -75,7 +76,7 @@ end
local function maze_text()
local world, time = maze2d.generate_maze(
os.time(),
settings.seed,
settings.width,
settings.height
)
@ -85,7 +86,7 @@ end
local function maze3d_text()
local world, time = maze3d.generate_maze(
os.time(),
settings.seed,
settings.width,
settings.height,
settings.depth
@ -98,7 +99,7 @@ end
local function maze3d_openscad()
local world, time = maze3d.generate_maze(
os.time(),
setting.seed,
settings.width,
settings.height,
settings.depth