diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-21 13:29:16 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
commit | 1b765b974003219fe395a5b97afaf6cfa9f0d7ed (patch) | |
tree | 59299446229222d1691d88a646a3ae9f342840d9 /src/mapblock.cpp | |
parent | 0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a (diff) | |
download | minetest-1b765b974003219fe395a5b97afaf6cfa9f0d7ed.tar.gz minetest-1b765b974003219fe395a5b97afaf6cfa9f0d7ed.tar.bz2 minetest-1b765b974003219fe395a5b97afaf6cfa9f0d7ed.zip |
Add reason parameter to setModified and print it out to verbosestream when saving block
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 76b8a5e79..bc678db15 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -41,6 +41,8 @@ MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy): m_pos(pos), m_gamedef(gamedef), m_modified(MOD_STATE_WRITE_NEEDED), + m_modified_reason("initial"), + m_modified_reason_too_long(false), is_underground(false), m_lighting_expired(true), m_day_night_differs(false), |