summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-07-23 15:28:02 +0000
committerglx <glx@openttd.org>2007-07-23 15:28:02 +0000
commit8367e16809067a09af4a54bec7fc79d6f1a35cbf (patch)
tree5ac8025814fc53927fc58dda7c614c0101347190 /src
parent045a51ce62eed2604f92c12c8875e4f6d47cbf6a (diff)
downloadopenttd-8367e16809067a09af4a54bec7fc79d6f1a35cbf.tar.xz
(svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp2
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;
}