aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp3
-rw-r--r--src/server.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 0f9394300..166aa4db0 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -262,8 +262,7 @@ Server::Server(
// Initialize mapgens
m_emerge->initMapgens(servermap->getMapgenParams());
- m_enable_rollback_recording = g_settings->getBool("enable_rollback_recording");
- if (m_enable_rollback_recording) {
+ if (g_settings->getBool("enable_rollback_recording")) {
// Create rollback manager
m_rollback = new RollbackManager(m_path_world, this);
}
diff --git a/src/server.h b/src/server.h
index 5c942c20b..b0f65980d 100644
--- a/src/server.h
+++ b/src/server.h
@@ -520,7 +520,6 @@ private:
// Rollback manager (behind m_env_mutex)
IRollbackManager *m_rollback = nullptr;
- bool m_enable_rollback_recording = false; // Updated once in a while
// Emerge manager
EmergeManager *m_emerge = nullptr;