From 8367e16809067a09af4a54bec7fc79d6f1a35cbf Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 23 Jul 2007 15:28:02 +0000 Subject: [PATCH] (svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it --- src/console_cmds.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index d2717ff284..7030d9a8e4 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1079,6 +1079,8 @@ DEF_CONSOLE_CMD(ConExit) return true; } + if (_game_mode == GM_NORMAL && _patches.autosave_on_exit) DoExitSave(); + _exit_game = true; return true; }