(svn r17893) -Feature [FS#2633]: make it possible to disable background saving, only via the config file/in game console though

This commit is contained in:
rubidium
2009-10-27 20:28:10 +00:00
parent 0b5698a5b0
commit 778f6533ea
3 changed files with 3 additions and 1 deletions

View File

@@ -1852,7 +1852,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
SlWriteFill(); // flush the save buffer
SaveFileStart();
if (_network_server) threaded = false;
if (_network_server || !_settings_client.gui.threaded_saves) threaded = false;
if (!threaded || !ThreadObject::New(&SaveFileToDiskThread, NULL, &_save_thread)) {
if (threaded) DEBUG(sl, 1, "Cannot create savegame thread, reverting to single-threaded mode...");