diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 20:09:36 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-18 09:36:42 +0100 |
commit | 4208fdfd2273b715eeddb8b9877c2def8346d447 (patch) | |
tree | f06bb591b996c1facb14d18a1b4cc88793a1b70d /src/map.cpp | |
parent | 4875213168ed877ab708e81d539923109977a5c8 (diff) | |
download | minetest-4208fdfd2273b715eeddb8b9877c2def8346d447.tar.gz minetest-4208fdfd2273b715eeddb8b9877c2def8346d447.tar.bz2 minetest-4208fdfd2273b715eeddb8b9877c2def8346d447.zip |
Fix unused (and so, broken) enable_rollback_recording. This option must be reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable)
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index d8f018742..efa53ca08 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1863,11 +1863,11 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks) // Find out whether there is a suspect for this action std::string suspect; - if(m_gamedef->rollback()){ + if(m_gamedef->rollback()) { suspect = m_gamedef->rollback()->getSuspect(p0, 83, 1); } - if(!suspect.empty()){ + if(m_gamedef->rollback() && !suspect.empty()){ // Blame suspect RollbackScopeActor rollback_scope(m_gamedef->rollback(), suspect, true); // Get old node for rollback |