Sync patch.
This commit is contained in:
parent
25765a1b0f
commit
87452af448
3 changed files with 3 additions and 5 deletions
2
advent.h
2
advent.h
|
@ -232,7 +232,7 @@ extern int restore(FILE *);
|
|||
extern long initialise(void);
|
||||
extern int action(command_t command);
|
||||
extern void state_change(obj_t, int);
|
||||
|
||||
extern bool is_valid(struct game_t *valgame);
|
||||
|
||||
void bug(enum bugtype, const char *) __attribute__((__noreturn__));
|
||||
|
||||
|
|
|
@ -155,8 +155,8 @@ def get_objects(obj):
|
|||
if labels:
|
||||
global statedefines
|
||||
statedefines += "/* States for %s */\n" % item[0]
|
||||
for (j, label) in enumerate(labels):
|
||||
statedefines += "#define %s\t%d\n" % (label, j)
|
||||
for (n, label) in enumerate(labels):
|
||||
statedefines += "#define %s\t%d\n" % (label, n)
|
||||
statedefines += "\n"
|
||||
sounds_str = ""
|
||||
if attr.get("sounds") == None:
|
||||
|
|
|
@ -112,8 +112,6 @@ int resume(void)
|
|||
return restore(fp);
|
||||
}
|
||||
|
||||
bool is_valid(struct game_t*);
|
||||
|
||||
int restore(FILE* fp)
|
||||
{
|
||||
/* Read and restore game state from file, assuming
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue