diff options
author | Weblate <42@minetest.ru> | 2013-02-08 16:29:19 +0100 |
---|---|---|
committer | Weblate <42@minetest.ru> | 2013-02-08 16:29:19 +0100 |
commit | a27857e9382fb65140748dbbefb73a463827d4d6 (patch) | |
tree | 72bf4dfbd030f04d94573d793aa150574eb9839d /src/map.cpp | |
parent | 0cda2d5193a80b32d3cae8a54d5866cbd3308592 (diff) | |
parent | 9b2044351fb3a18e47eec01e9b574aa86485c101 (diff) | |
download | minetest-a27857e9382fb65140748dbbefb73a463827d4d6.tar.gz minetest-a27857e9382fb65140748dbbefb73a463827d4d6.tar.bz2 minetest-a27857e9382fb65140748dbbefb73a463827d4d6.zip |
Merge remote branch 'origin/master'
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/map.cpp b/src/map.cpp index ea82194b8..717b0cf9b 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -2013,10 +2013,10 @@ ServerMap::ServerMap(std::string savedir, IGameDef *gamedef, EmergeManager *emer if (g_settings->get("fixed_map_seed").empty()) { - m_seed = (((u64)(myrand()%0xffff)<<0) - + ((u64)(myrand()%0xffff)<<16) - + ((u64)(myrand()%0xffff)<<32) - + ((u64)(myrand()&0xffff)<<48)); + m_seed = (((u64)(myrand() & 0xffff) << 0) + | ((u64)(myrand() & 0xffff) << 16) + | ((u64)(myrand() & 0xffff) << 32) + | ((u64)(myrand() & 0xffff) << 48)); m_mgparams->seed = m_seed; } @@ -3078,14 +3078,7 @@ void ServerMap::saveMapMeta() Settings params; - params.set("mg_name", m_emerge->params->mg_name); - params.setU64("seed", m_emerge->params->seed); - params.setS16("water_level", m_emerge->params->water_level); - params.setS16("chunksize", m_emerge->params->chunksize); - params.setS32("mg_flags", m_emerge->params->flags); - - m_emerge->params->writeParams(¶ms); - + m_emerge->setParamsToSettings(¶ms); params.writeLines(os); os<<"[end_of_params]\n"; |