Fixed jumble layout logic

This commit is contained in:
Linus Probert 2019-03-08 12:39:21 +01:00
parent b40c54a88d
commit 46fbdc1b3c
1 changed files with 3 additions and 3 deletions

View File

@ -250,14 +250,14 @@ end
function pickARoom(matrix)
-- Chose a random layout
if random(2) == 1 then
matrix = matrix[random(#matrix)]
return matrix[random(#matrix)]
else
matrix = createJumbleLayout(matrix)
return createJumbleLayout(matrix)
end
end
function module.add_walls_to_room(room)
if random(4) ~= 1 then
if random(3) ~= 1 then
return false
end