diff options
author | glx <glx@openttd.org> | 2007-07-23 15:28:02 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-07-23 15:28:02 +0000 |
commit | 8367e16809067a09af4a54bec7fc79d6f1a35cbf (patch) | |
tree | 5ac8025814fc53927fc58dda7c614c0101347190 | |
parent | 045a51ce62eed2604f92c12c8875e4f6d47cbf6a (diff) | |
download | openttd-8367e16809067a09af4a54bec7fc79d6f1a35cbf.tar.xz |
(svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it
-rw-r--r-- | src/console_cmds.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index d2717ff28..7030d9a8e 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; } |