mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
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
|
||||
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 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user