forked from github/server
add missing file, fix factions that lack a locale.
This commit is contained in:
parent
f92df416ff
commit
7b2d1991d8
|
@ -0,0 +1,9 @@
|
||||||
|
local rules = {}
|
||||||
|
if config.rules then
|
||||||
|
rules = require('eressea.' .. config.rules)
|
||||||
|
eressea.log.info('loaded ' .. #rules .. ' modules for ' .. config.rules)
|
||||||
|
else
|
||||||
|
eressea.log.warning('no rule modules loaded, specify a game in eressea.ini or with -r')
|
||||||
|
end
|
||||||
|
|
||||||
|
return rules
|
|
@ -1291,6 +1291,7 @@ faction *readfaction(struct gamedata * data)
|
||||||
|
|
||||||
READ_STR(data->store, name, sizeof(name));
|
READ_STR(data->store, name, sizeof(name));
|
||||||
f->locale = get_locale(name);
|
f->locale = get_locale(name);
|
||||||
|
if (!f->locale) f->locale = default_locale;
|
||||||
READ_INT(data->store, &f->lastorders);
|
READ_INT(data->store, &f->lastorders);
|
||||||
READ_INT(data->store, &f->age);
|
READ_INT(data->store, &f->age);
|
||||||
READ_STR(data->store, name, sizeof(name));
|
READ_STR(data->store, name, sizeof(name));
|
||||||
|
|
Loading…
Reference in New Issue