aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-02 20:55:22 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-02 20:55:22 +0300
commitbc66bb2d409f13554bdcec7386766af82a343cad (patch)
tree37376d220e421db8d567c2624fe977355fe6f832 /src/mapblock.cpp
parent2990f5d90bd556684c07d60872a707e649bd71ee (diff)
downloadminetest-bc66bb2d409f13554bdcec7386766af82a343cad.tar.xz
Mapgen is better now. Not a lot, but a bit!
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 9594b2961..94c6ad909 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -36,6 +36,7 @@ MapBlock::MapBlock(NodeContainer *parent, v3s16 pos, bool dummy):
is_underground(false),
m_lighting_expired(true),
m_day_night_differs(false),
+ m_not_fully_generated(false),
m_objects(this)
{
data = NULL;
@@ -1762,6 +1763,8 @@ void MapBlock::serialize(std::ostream &os, u8 version)
flags |= 0x02;
if(m_lighting_expired)
flags |= 0x04;
+ if(m_not_fully_generated)
+ flags |= 0x08;
os.write((char*)&flags, 1);
u32 nodecount = MAP_BLOCKSIZE*MAP_BLOCKSIZE*MAP_BLOCKSIZE;
@@ -1884,6 +1887,7 @@ void MapBlock::deSerialize(std::istream &is, u8 version)
is_underground = (flags & 0x01) ? true : false;
m_day_night_differs = (flags & 0x02) ? true : false;
m_lighting_expired = (flags & 0x04) ? true : false;
+ m_not_fully_generated = (flags & 0x08) ? true : false;
// Uncompress data
std::ostringstream os(std::ios_base::binary);