projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a4073
)
Dungeon loot: Reduce maximum processed rooms to 8
author
paramat
<paramat@users.noreply.github.com>
Sun, 21 Jan 2018 20:23:29 +0000
(20:23 +0000)
committer
paramat
<mat.gregory@virginmedia.com>
Tue, 23 Jan 2018 06:43:49 +0000
(06:43 +0000)
mods/dungeon_loot/mapgen.lua
patch
|
blob
|
history
diff --git
a/mods/dungeon_loot/mapgen.lua
b/mods/dungeon_loot/mapgen.lua
index 9d42c530267892f7d06f65a30bb72927f01864e9..1e463450105cf0c6468f88d199b4d94fb8e1fb25 100644
(file)
--- a/
mods/dungeon_loot/mapgen.lua
+++ b/
mods/dungeon_loot/mapgen.lua
@@
-131,8
+131,8
@@
minetest.register_on_generated(function(minp, maxp, blockseed)
local rand = PcgRandom(noise3d_integer(noise, poslist[1]))
local candidates = {}
- -- process at most
16
rooms to keep runtime of this predictable
- local num_process = math.min(#poslist,
16
)
+ -- process at most
8
rooms to keep runtime of this predictable
+ local num_process = math.min(#poslist,
8
)
for i = 1, num_process do
local room = find_walls(poslist[i])
-- skip small rooms and everything that doesn't at least have 3 walls