From: Ilya Zhuravlev Date: Sun, 17 Mar 2013 17:09:05 +0000 (+0400) Subject: Don't erase modified_blocks X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d207d359d12ef1ae27b0e3255834d8939e687a14;p=zefram%2Fminetest%2Fminetest_engine.git Don't erase modified_blocks --- diff --git a/src/map.cpp b/src/map.cpp index 3d36675a..8d8ce0d2 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1324,7 +1324,7 @@ bool Map::addNodeWithEvent(v3s16 p, MapNode n) i = modified_blocks.begin(); i != modified_blocks.end(); ++i) { - event.modified_blocks.erase(i->first); + event.modified_blocks.insert(i->first); } } catch(InvalidPositionException &e){ @@ -1352,7 +1352,7 @@ bool Map::removeNodeWithEvent(v3s16 p) i = modified_blocks.begin(); i != modified_blocks.end(); ++i) { - event.modified_blocks.erase(i->first); + event.modified_blocks.insert(i->first); } } catch(InvalidPositionException &e){ @@ -3058,7 +3058,7 @@ MapBlock * ServerMap::emergeBlock(v3s16 p, bool create_blank) i = modified_blocks.begin(); i != modified_blocks.end(); ++i) { - event.modified_blocks.erase(i->first); + event.modified_blocks.insert(i->first); } // Queue event