How to set up prerequisites for oldcompare
[open-adventure.git] / score.c
diff --git a/score.c b/score.c
index 7e6b28c26ae9ee02a96f3d596983f39a6abae393..8e37374591b165bd7787be8245aecdd58f2255f3 100644 (file)
--- a/score.c
+++ b/score.c
@@ -1,9 +1,9 @@
 /*
  * Scoring and wrap-up.
  *
- * Copyright (c) 1977, 2005 by Will Crowther and Don Woods
- * Copyright (c) 2017 by Eric S. Raymond
- * SPDX-License-Identifier: BSD-2-clause
+ * SPDX-FileCopyrightText: 1977, 2005 by Will Crowther and Don Woods
+ * SPDX-FileCopyrightText: 2017 by Eric S. Raymond
+ * SPDX-License-Identifier: BSD-2-Clause
  */
 #include <stdlib.h>
 #include "advent.h"
@@ -117,6 +117,9 @@ void terminate(enum termination mode)
 /* End of game.  Let's tell him all about it. */
 {
     int points = score(mode);
+#if defined ADVENT_AUTOSAVE
+    autosave();
+#endif
 
     if (points + game.trnluz + 1 >= mxscor && game.trnluz != 0)
         rspeak(TOOK_LONG);