diff --git a/conf/e2/config.xml b/conf/e2/config.xml
index 2fcaad800..9b0a90851 100644
--- a/conf/e2/config.xml
+++ b/conf/e2/config.xml
@@ -33,10 +33,13 @@
-
-
-
-
+
+
+
+
+
+
+
diff --git a/conf/e3/config.xml b/conf/e3/config.xml
index 7d9a71ab2..e0669c527 100644
--- a/conf/e3/config.xml
+++ b/conf/e3/config.xml
@@ -32,7 +32,6 @@
-
diff --git a/conf/e4/config.xml b/conf/e4/config.xml
index a6439db21..1924ff2c9 100644
--- a/conf/e4/config.xml
+++ b/conf/e4/config.xml
@@ -32,7 +32,6 @@
-
diff --git a/scripts/newplayer.lua b/scripts/newplayer.lua
index 9d64f585b..4ef429b2a 100644
--- a/scripts/newplayer.lua
+++ b/scripts/newplayer.lua
@@ -17,19 +17,10 @@ end
local function seed(r, email, race, lang)
local f = faction.create(email, race, lang)
local u = unit.create(f, r)
+ equip_unit(u, "new_faction")
+ equip_unit(u, "first_unit")
+ equip_unit(u, "first_" .. race, 7) -- disable old callbacks
u:set_skill("perception", 30)
- u:add_item("money", 20000)
- items = {
- log = 50,
- stone = 50,
- iron = 50,
- laen = 10,
- mallorn = 10,
- skillpotion = 5
- }
- for it, num in pairs(items) do
- u:add_item(it, num)
- end
unit.create(f, r, 5):set_skill("mining", 30)
unit.create(f, r, 5):set_skill("quarrying", 30)
return f
diff --git a/scripts/populate.lua b/scripts/populate.lua
index 5df2ad92f..9ab1b5bcb 100644
--- a/scripts/populate.lua
+++ b/scripts/populate.lua
@@ -16,7 +16,7 @@ end
local function select(regions, limit)
local sel = {}
for r in regions do
- if r.terrain~="ocean" and not r.units() then
+ if not r.plane and r.terrain~="ocean" and not r.units() then
s = score(r)
if s >= limit then
table.insert(sel, r)
diff --git a/src/bindings.c b/src/bindings.c
index 169c91d0c..5fcf4ef1f 100755
--- a/src/bindings.c
+++ b/src/bindings.c
@@ -434,7 +434,9 @@ static int tolua_equipunit(lua_State * L)
{
unit *u = (unit *)tolua_tousertype(L, 1, 0);
const char *eqname = tolua_tostring(L, 2, 0);
- equip_unit(u, get_equipment(eqname));
+ int mask = (int)tolua_tonumber(L, 3, EQUIP_ALL);
+ assert(mask > 0);
+ equip_unit_mask(u, get_equipment(eqname), mask);
return 0;
}