diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-26 00:23:38 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-26 00:23:38 +0300 |
commit | 28300953667b6a44efb5be6b2c612993de060636 (patch) | |
tree | 86b6a28085e34218ebe8d552f7993694a55366f2 /src/mapchunk.h | |
parent | 42fb1ba676de762b033b943c4a2d82db6229d245 (diff) | |
download | minetest-28300953667b6a44efb5be6b2c612993de060636.tar.gz minetest-28300953667b6a44efb5be6b2c612993de060636.tar.bz2 minetest-28300953667b6a44efb5be6b2c612993de060636.zip |
Optimized map saving and sending (server-side)
Diffstat (limited to 'src/mapchunk.h')
-rw-r--r-- | src/mapchunk.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapchunk.h b/src/mapchunk.h index 1819fa13e..9860abad0 100644 --- a/src/mapchunk.h +++ b/src/mapchunk.h @@ -36,7 +36,8 @@ class MapChunk { public: MapChunk(): - m_generation_level(GENERATED_NOT) + m_generation_level(GENERATED_NOT), + m_modified(true) { } @@ -58,8 +59,12 @@ public: is.read((char*)&m_generation_level, 1); } + bool isModified(){ return m_modified; } + void setModified(bool modified){ m_modified = modified; } + private: u8 m_generation_level; + bool m_modified; }; #endif |