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:
Peje Nilsson 2017-06-16 18:15:04 +02:00 committed by Eric S. Raymond
parent adbbd1df25
commit a6feda5307
3 changed files with 57 additions and 48 deletions

View file

@ -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