Spelling fixes.
[open-adventure.git] / advent.h
index f9a6a9ae84f555e335bbf0ffb36f42d8e4a59ca1..70c0c6865252679015c51a68194fbe30e0e292cc 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -178,7 +178,7 @@ struct game_t {
     int saved;                   // point penalty for saves
     int tally;                   // count of treasures gained
     int thresh;                  // current threshold for endgame scoring tier
-    bool seenbigwords;           // have we red the grafitti in the Giant's Room? 
+    bool seenbigwords;           // have we red the graffiti in the Giant's Room? 
     turn_t trnluz;               // # points lost so far due to turns used
     turn_t turns;                // counts commands given (ignores yes/no)
     char zzword[TOKLEN + 1];     // randomly generated magic word from bird
@@ -236,7 +236,7 @@ typedef struct {
 #define SAVE_VERSION   30
 
 /*
- * Goes at start of gile so sabes can be identified by file(1) and the like.
+ * Goes at start of file so saves can be identified by file(1) and the like.
  */
 #define ADVENT_MAGIC   "open-adventure\n"
 
@@ -248,6 +248,7 @@ typedef struct {
 struct save_t {
     char magic[sizeof(ADVENT_MAGIC)];
     int32_t version;
+    int32_t canary;
     struct game_t game;
 };
 
@@ -277,7 +278,7 @@ extern void set_seed(int32_t);
 extern int32_t randrange(int32_t);
 extern int score(enum termination);
 extern void terminate(enum termination) __attribute__((noreturn));
-extern int savefile(FILE *, int32_t);
+extern int savefile(FILE *);
 #if defined ADVENT_AUTOSAVE
 extern void autosave(void);
 #endif