Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Save map, players and auth stuff
- {
- float &counter = m_savemap_timer;
- counter += dtime;
- static const float save_interval =
- g_settings->getFloat("server_map_save_interval");
- if (counter >= save_interval) {
- counter = 0.0;
- MutexAutoLock lock(m_env_mutex);
- ScopeProfiler sp(g_profiler, "Server: saving stuff");
- // Save ban file
- if (m_banmanager->isModified()) {
- m_banmanager->save();
- }
- // Save changed parts of map
- m_env->getMap().save(MOD_STATE_WRITE_NEEDED);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement