diff options
author | fz72 <fz72@gmx.de> | 2015-02-17 16:53:49 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-18 08:57:14 +0100 |
commit | 0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d (patch) | |
tree | 92694a0c647e475754fae11f73c82b24a852a8cf /src | |
parent | 2079462e62b478555b1b614a90692b6bc9bb5d34 (diff) | |
download | minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.tar.gz minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.tar.bz2 minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.zip |
Fix map_seed not changed when creating a new world after login to another
Diffstat (limited to 'src')
-rw-r--r-- | src/emerge.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp index c485caffa..a697bcb07 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -361,7 +361,10 @@ void EmergeManager::loadParamsFromSettings(Settings *settings) 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 = |