summaryrefslogtreecommitdiff
path: root/src/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.c')
-rw-r--r--src/files.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/files.c b/src/files.c
index d1b3d4f9..ea331a15 100644
--- a/src/files.c
+++ b/src/files.c
@@ -4239,7 +4239,19 @@ void do_cmd_save_game(void)
(void)strcpy(died_from, "(alive and well)");
}
-
+/*
+ * Auto-save depending on whether the auto save flag is set.
+ */
+void autosave_checkpoint()
+{
+ if (autosave_l)
+ {
+ is_autosave = TRUE;
+ msg_print("Autosaving the game...");
+ do_cmd_save_game();
+ is_autosave = FALSE;
+ }
+}
/*
* Hack -- Calculates the total number of points earned -JWT-