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/mapgen.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/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 999c757d0..4688a87c4 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -1478,7 +1478,7 @@ void add_random_objects(MapBlock *block) last_node_walkable = false; } } - block->setChangedFlag(); + block->raiseModified(MOD_STATE_WRITE_NEEDED, "mapgen::add_random_objects"); #endif } |