diff options
author | kwolekr <mirrorisim@gmail.com> | 2013-01-21 13:40:05 -0500 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:37 +0200 |
commit | b87cd8c58b4f396e95799c46a0ec11dd4adb85c9 (patch) | |
tree | fe9cafd18ff57f9502351bdda0ef51ddba3719b5 /src/map.cpp | |
parent | 318669327e84d8fc7498e32c5bacfad658d8ba87 (diff) | |
download | minetest-b87cd8c58b4f396e95799c46a0ec11dd4adb85c9.tar.gz minetest-b87cd8c58b4f396e95799c46a0ec11dd4adb85c9.tar.bz2 minetest-b87cd8c58b4f396e95799c46a0ec11dd4adb85c9.zip |
Use a string identifier for a mapgen instead of version
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp index dff30940d..6a058bb51 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -3079,15 +3079,15 @@ void ServerMap::saveMapMeta() Settings params; - params.setS16("mg_version", m_emerge->params->mg_version); + 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); - switch (m_emerge->params->mg_version) { +/* switch (m_emerge->params->mg_version) { case 6: - { + {*/ MapgenV6Params *v6params = (MapgenV6Params *)m_emerge->params; params.setFloat("mgv6_freq_desert", v6params->freq_desert); @@ -3101,11 +3101,11 @@ void ServerMap::saveMapMeta() params.setNoiseParams("mgv6_np_beach", v6params->np_beach); params.setNoiseParams("mgv6_np_biome", v6params->np_biome); params.setNoiseParams("mgv6_np_cave", v6params->np_cave); - break; + /* break; } default: ; //complain here - } + }*/ params.writeLines(os); |