Skip to content
Permalink
Browse files
Drop Server::m_enable_rollback_recording it's only used in server con…
…structor
  • Loading branch information
nerzhul committed Mar 16, 2018
1 parent 95ce558 commit 478b785bc8d8f82b69b23f22ea8a69007db10d9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
@@ -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);
}
@@ -520,7 +520,6 @@ class Server : public con::PeerHandler, public MapEventReceiver,

// 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;

0 comments on commit 478b785

Please sign in to comment.