diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 18:33:05 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 18:33:05 +0300 |
commit | 81ac026e1f04f1c40eb246e21e9aac25c8ec8f92 (patch) | |
tree | cac54b3f77b2cbbbb58207498e4264fa99adcede /src | |
parent | 50a8087684cb9cdee033053c01a6e51eb516565b (diff) | |
download | minetest-81ac026e1f04f1c40eb246e21e9aac25c8ec8f92.tar.gz minetest-81ac026e1f04f1c40eb246e21e9aac25c8ec8f92.tar.bz2 minetest-81ac026e1f04f1c40eb246e21e9aac25c8ec8f92.zip |
updated example map generator python script
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 3 | ||||
-rw-r--r-- | src/serialization.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 82317aec5..2a92f6733 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -4711,6 +4711,9 @@ plan_b: /* Plan B: Get from map generator perlin noise function */ + // This won't work if proper generation is disabled + if(m_chunksize == 0) + return WATER_LEVEL+2; double level = base_rock_level_2d(m_seed, p2d); return (s16)level; } diff --git a/src/serialization.h b/src/serialization.h index 26ab90e36..c87162e69 100644 --- a/src/serialization.h +++ b/src/serialization.h @@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc., NOTE: The goal is to increment this so that saved maps will be loadable by any version. Other compatibility is not maintained. - Serialization format versions: + Serialization format versions (for raw map data (blocks, nodes, sectors)): == Unsupported == 0: original networked test with 1-byte nodes 1: update with 2-byte nodes |