projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Give savefiles an identifting header. SAve format version gets bumped.
[open-adventure.git]
/
saveresume.c
diff --git
a/saveresume.c
b/saveresume.c
index 858498235fae8d5835e4638edf02f334911ec596..76de1c4300b5ec633a342781a61f09f5bcfbc2d0 100644
(file)
--- a/
saveresume.c
+++ b/
saveresume.c
@@
-25,8
+25,7
@@
struct save_t save;
int savefile(FILE *fp, int32_t version)
/* Save game to file. No input or output from user. */
{
int savefile(FILE *fp, int32_t version)
/* Save game to file. No input or output from user. */
{
- save.savetime = time(NULL);
- save.mode = -1;
+ memcpy(&save.magic, ADVENT_MAGIC, sizeof(ADVENT_MAGIC));
save.version = (version == 0) ? SAVE_VERSION : version;
save.game = game;
save.version = (version == 0) ? SAVE_VERSION : version;
save.game = game;