From 544af40981cb871adff7e57073053e457a3be483 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 8 Sep 2016 20:34:25 +0200 Subject: [PATCH 1/2] fix seeding new factions --- scripts/eressea/autoseed.lua | 4 +++- scripts/eressea/e2/init.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/eressea/autoseed.lua b/scripts/eressea/autoseed.lua index e948705c0..d0f83b6d3 100644 --- a/scripts/eressea/autoseed.lua +++ b/scripts/eressea/autoseed.lua @@ -76,7 +76,7 @@ end function autoseed.init() -- local newbs = {} - local num_seeded = 0 + local num_seeded = per_region local start = nil eressea.log.info('autoseed new players') @@ -94,8 +94,10 @@ function autoseed.init() for _, p in ipairs(players) do if num_seeded == per_region then local index = rng_int() % #sel + start = nil while not start do start = sel[index + 1] + sel[index+1] = nil index = (index + 1) % #sel end num_seeded = 0 diff --git a/scripts/eressea/e2/init.lua b/scripts/eressea/e2/init.lua index 5bf6402cb..ed996c395 100644 --- a/scripts/eressea/e2/init.lua +++ b/scripts/eressea/e2/init.lua @@ -3,7 +3,7 @@ eressea.log.debug("rules for game E2") return { require('eressea'), --- require('eressea.autoseed'), + require('eressea.autoseed'), require('eressea.xmas'), require('eressea.xmasitems'), require('eressea.wedding'), From e3f774b4b046da959bc988147f8f45f54d14e3b6 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 8 Sep 2016 20:35:07 +0200 Subject: [PATCH 2/2] release version 3.9.2 --- src/buildno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildno.h b/src/buildno.h index 505d1d571..e8e29ed2a 100644 --- a/src/buildno.h +++ b/src/buildno.h @@ -1,3 +1,3 @@ #define VERSION_MAJOR 3 #define VERSION_MINOR 9 -#define VERSION_BUILD 1 +#define VERSION_BUILD 2