forked from Mirrorlandia_minetest/minetest
Drop Server::m_enable_rollback_recording it's only used in server constructor
This commit is contained in:
parent
95ce5583a9
commit
478b785bc8
@ -262,8 +262,7 @@ Server::Server(
|
|||||||
// Initialize mapgens
|
// Initialize mapgens
|
||||||
m_emerge->initMapgens(servermap->getMapgenParams());
|
m_emerge->initMapgens(servermap->getMapgenParams());
|
||||||
|
|
||||||
m_enable_rollback_recording = g_settings->getBool("enable_rollback_recording");
|
if (g_settings->getBool("enable_rollback_recording")) {
|
||||||
if (m_enable_rollback_recording) {
|
|
||||||
// Create rollback manager
|
// Create rollback manager
|
||||||
m_rollback = new RollbackManager(m_path_world, this);
|
m_rollback = new RollbackManager(m_path_world, this);
|
||||||
}
|
}
|
||||||
|
@ -520,7 +520,6 @@ private:
|
|||||||
|
|
||||||
// Rollback manager (behind m_env_mutex)
|
// Rollback manager (behind m_env_mutex)
|
||||||
IRollbackManager *m_rollback = nullptr;
|
IRollbackManager *m_rollback = nullptr;
|
||||||
bool m_enable_rollback_recording = false; // Updated once in a while
|
|
||||||
|
|
||||||
// Emerge manager
|
// Emerge manager
|
||||||
EmergeManager *m_emerge = nullptr;
|
EmergeManager *m_emerge = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user