projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Magic-number and state-arithmetic removal.
[open-adventure.git]
/
saveresume.c
diff --git
a/saveresume.c
b/saveresume.c
index 4ce219af323e7e7ebff1cea80fbfa43f524b0b07..3ec4ebd11b0aa1a192ea145e99c689d44295b616 100644
(file)
--- a/
saveresume.c
+++ b/
saveresume.c
@@
-26,6
+26,8
@@
struct save_t {
};
struct save_t save;
};
struct save_t save;
+#define IGNORE(r) do{if (r){}}while(0)
+
int savefile(FILE *fp, long version)
/* Save game to file. No input or output from user. */
{
int savefile(FILE *fp, long version)
/* Save game to file. No input or output from user. */
{
@@
-73,7
+75,7
@@
int suspend(void)
savefile(fp, VRSION);
fclose(fp);
rspeak(RESUME_HELP);
savefile(fp, VRSION);
fclose(fp);
rspeak(RESUME_HELP);
- exit(
0
);
+ exit(
EXIT_SUCCESS
);
}
int resume(void)
}
int resume(void)