local message = nil
+ core.setting_set("fixed_map_seed", fields["te_seed"])
+
if not menudata.worldlist:uid_exists_raw(worldname) then
core.setting_set("mg_name",fields["dd_mapgen"])
message = core.create_world(worldname,gameindex)
message = fgettext("A world named \"$1\" already exists", worldname)
end
- core.setting_set("fixed_map_seed", fields["te_seed"])
-
if message ~= nil then
gamedata.errormessage = message
else
std::string seed_str;
const char *setname = (settings == g_settings) ? "fixed_map_seed" : "seed";
- if (settings->getNoEx(setname, seed_str) && !seed_str.empty()) {
+ if (!settings->getNoEx("seed", seed_str)) {
+ g_settings->getNoEx(setname, seed_str);
+ }
+ if (!seed_str.empty()) {
params.seed = read_seed(seed_str.c_str());
} else {
params.seed =