aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-27 02:46:54 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-27 02:46:54 +0300
commit508b7b5e51bd2e193fb182bb9247555154d78087 (patch)
treef2506a860db32688b9a75b1d9c44a78460c33e6e /src
parentf7dc72f8aacddea66312a38cb47cd5e928cebb5d (diff)
downloadminetest-508b7b5e51bd2e193fb182bb9247555154d78087.tar.gz
minetest-508b7b5e51bd2e193fb182bb9247555154d78087.tar.bz2
minetest-508b7b5e51bd2e193fb182bb9247555154d78087.zip
Don't track liquids for rollback because of too much log
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 734122105..853693049 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1623,8 +1623,9 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
/*
If something goes wrong, liquids are to blame
+ NOTE: Do not track liquids; it causes huge amounts of rollback log
*/
- RollbackScopeActor rollback_scope(m_gamedef->rollback(), "liquid");
+ //RollbackScopeActor rollback_scope(m_gamedef->rollback(), "liquid");
u32 loopcount = 0;
u32 initial_size = m_transforming_liquid.size();
@@ -1831,19 +1832,19 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
n0.setContent(new_node_content);
// Get old node for rollback
- RollbackNode rollback_oldnode(this, p0, m_gamedef);
+ //RollbackNode rollback_oldnode(this, p0, m_gamedef);
// Set node
setNode(p0, n0);
// Report for rollback
- if(m_gamedef->rollback())
+ /*if(m_gamedef->rollback())
{
RollbackNode rollback_newnode(this, p0, m_gamedef);
RollbackAction action;
action.setSetNode(p0, rollback_oldnode, rollback_newnode);
m_gamedef->rollback()->reportAction(action);
- }
+ }*/
v3s16 blockpos = getNodeBlockPos(p0);
MapBlock *block = getBlockNoCreateNoEx(blockpos);