From: Perttu Ahola Date: Mon, 14 Feb 2011 09:10:44 +0000 (+0200) Subject: players to not be saved when map saving is disabled (due to some error) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=32a29489f3ecbff1fa2b72b91c699695b489be8c;p=zefram%2Fminetest%2Fminetest_engine.git players to not be saved when map saving is disabled (due to some error) --- diff --git a/src/server.cpp b/src/server.cpp index f2078b9d..739698f1 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1395,20 +1395,23 @@ void Server::AsyncRunStep() JMutexAutoLock lock(m_env_mutex); - // Save only changed parts - m_env.getMap().save(true); - - // Delete unused sectors - u32 deleted_count = m_env.getMap().deleteUnusedSectors( - g_settings.getFloat("server_unload_unused_sectors_timeout")); - if(deleted_count > 0) + if(((ServerMap*)(&m_env.getMap()))->isSavingEnabled() == true) { - dout_server<<"Server: Unloaded "< 0) + { + dout_server<<"Server: Unloaded "<