aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-21 13:29:16 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:49 +0200
commit1b765b974003219fe395a5b97afaf6cfa9f0d7ed (patch)
tree59299446229222d1691d88a646a3ae9f342840d9 /src/mapblock.cpp
parent0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a (diff)
downloadminetest-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.cpp2
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),