Split saveresume to reduce complexity
Fixed a bug where current time was printed as version of advent when loading an old savegame.
This commit is contained in:
parent
adbbd1df25
commit
a6feda5307
3 changed files with 57 additions and 48 deletions
3
advent.h
3
advent.h
|
@ -114,7 +114,8 @@ extern void set_seed(long);
|
|||
extern unsigned long get_next_lcg_value(void);
|
||||
extern long randrange(long);
|
||||
extern void score(enum termination);
|
||||
extern int saveresume(FILE *, bool);
|
||||
extern int suspend(FILE *);
|
||||
extern int resume(FILE *);
|
||||
|
||||
/*
|
||||
* MOD(N,M) = Arithmetic modulus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue