projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a formal-type glitch.
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/advent.h
index c740c534a4397a3ccd912aa188bf44a2d73ca2e4..8cecf317f15a1612a11d3842b41b1d27d57fc8fe 100644
(file)
--- a/
advent.h
+++ b/
advent.h
@@
-13,7
+13,7
@@
#define LCG_M 1048576L
#define LINESIZE 1024
#define LCG_M 1048576L
#define LINESIZE 1024
-#define TOKLEN 5 // #
sigificant
characters in a token */
+#define TOKLEN 5 // #
outputting
characters in a token */
#define NDWARVES 6 // number of dwarves
#define PIRATE NDWARVES // must be NDWARVES-1 when zero-origin
#define DALTLC LOC_NUGGET // alternate dwarf location
#define NDWARVES 6 // number of dwarves
#define PIRATE NDWARVES // must be NDWARVES-1 when zero-origin
#define DALTLC LOC_NUGGET // alternate dwarf location
@@
-81,7
+81,7
@@
#define FOREST(LOC) CNDBIT(LOC, COND_FOREST)
#define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC))
#define INSIDE(LOC) (!OUTSID(LOC) || LOC == LOC_BUILDING)
#define FOREST(LOC) CNDBIT(LOC, COND_FOREST)
#define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC))
#define INSIDE(LOC) (!OUTSID(LOC) || LOC == LOC_BUILDING)
-#define INDEEP(LOC)
((LOC) >= LOC_MISTHALL && !OUTSID(LOC)
)
+#define INDEEP(LOC)
CNDBIT((LOC),COND_DEEP
)
#define BUG(x) bug(x, #x)
enum bugtype {
#define BUG(x) bug(x, #x)
enum bugtype {
@@
-233,7
+233,7
@@
extern bool silent_yes_or_no(void);
extern bool yes_or_no(const char*, const char*, const char*);
extern void juggle(obj_t);
extern void move(obj_t, loc_t);
extern bool yes_or_no(const char*, const char*, const char*);
extern void juggle(obj_t);
extern void move(obj_t, loc_t);
-extern loc_t put(obj_t,
in
t, int);
+extern loc_t put(obj_t,
loc_
t, int);
extern void carry(obj_t, loc_t);
extern void drop(obj_t, loc_t);
extern int atdwrf(loc_t);
extern void carry(obj_t, loc_t);
extern void drop(obj_t, loc_t);
extern int atdwrf(loc_t);
@@
-244,6
+244,9
@@
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 score(enum termination);
extern void terminate(enum termination) __attribute__((noreturn));
extern int savefile(FILE *, int32_t);
+#if defined ADVENT_AUTOSAVE
+extern void autosave(void);
+#endif
extern int suspend(void);
extern int resume(void);
extern int restore(FILE *);
extern int suspend(void);
extern int resume(void);
extern int restore(FILE *);