aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-03-16 09:12:39 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2018-03-16 09:12:39 +0100
commit478b785bc8d8f82b69b23f22ea8a69007db10d9e (patch)
tree8db1f73ed240e7ac1b7f35089370c40e5d656800 /src/server.cpp
parent95ce5583a9e4a0f95a4d9b28e0faedccd73e2b9d (diff)
downloadminetest-478b785bc8d8f82b69b23f22ea8a69007db10d9e.tar.gz
minetest-478b785bc8d8f82b69b23f22ea8a69007db10d9e.tar.bz2
minetest-478b785bc8d8f82b69b23f22ea8a69007db10d9e.zip
Drop Server::m_enable_rollback_recording it's only used in server constructor
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp3
1 files changed, 1 insertions, 2 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);
}