forked from github/server
Merge pull request #363 from ennorehling/master
fix scripting bug in new autoseed module
This commit is contained in:
commit
0414890923
|
@ -78,7 +78,6 @@ function autoseed.init()
|
||||||
local sel
|
local sel
|
||||||
eressea.log.info(#players .. ' new players')
|
eressea.log.info(#players .. ' new players')
|
||||||
sel = select_regions(regions(), peasants, trees)
|
sel = select_regions(regions(), peasants, trees)
|
||||||
end
|
|
||||||
for _, p in ipairs(players) do
|
for _, p in ipairs(players) do
|
||||||
if num_seeded == per_region then
|
if num_seeded == per_region then
|
||||||
while not start or start.units() do
|
while not start or start.units() do
|
||||||
|
@ -97,6 +96,7 @@ function autoseed.init()
|
||||||
-- table.insert(newbs, f)
|
-- table.insert(newbs, f)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return autoseed
|
return autoseed
|
||||||
|
|
Loading…
Reference in New Issue