summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video/dedicated_v.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 6553aeec0..2e35f4678 100644
--- 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 @@ static void OS2_SwitchToConsoleMode()
/* 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);
}