Mercurial > hg > openttd
changeset 16090:c8af6f6c1e5a draft
(svn r20783) -Change/Fix: do autosave-on-exit as well when using kill/CTRL-C to terminate a dedicated OpenTTD
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 10 Sep 2010 20:03:45 +0000 |
parents | bcd4c4237502 |
children | a9945a283858 |
files | src/video/dedicated_v.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -23,6 +23,7 @@ #include "../blitter/factory.hpp" #include "../company_func.h" #include "../core/random_func.hpp" +#include "../saveload/saveload.h" #include "dedicated_v.h" #ifdef BEOS_NET_SERVER @@ -70,6 +71,7 @@ /* Signal handlers */ static void DedicatedSignalHandler(int sig) { + if (_game_mode == GM_NORMAL && _settings_client.gui.autosave_on_exit) DoExitSave(); _exit_game = true; signal(sig, DedicatedSignalHandler); }