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
commit79f4d4d0de6be727ffe8c82e80318d6f94b1c1e1 (patch)
tree5ac8025814fc53927fc58dda7c614c0101347190 /src
parente5aca34acb3823d28db613fe0f58e57cad00b719 (diff)
downloadopenttd-79f4d4d0de6be727ffe8c82e80318d6f94b1c1e1.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;
}