projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spelling fixes
[open-adventure.git]
/
saveresume.c
diff --git
a/saveresume.c
b/saveresume.c
index c53ee4950ff9942868ec2ad4517497739030a421..dedb5bbe288a03b6581ad18895ea4183984f83ba 100644
(file)
--- a/
saveresume.c
+++ b/
saveresume.c
@@
-57,7
+57,7
@@
int savefile(FILE *fp, int32_t version)
/* Suspend and resume */
/* Suspend and resume */
-char *strip(char *name)
+
static
char *strip(char *name)
{
// Trim leading whitespace
while(isspace((unsigned char)*name))
{
// Trim leading whitespace
while(isspace((unsigned char)*name))
@@
-83,7
+83,7
@@
int suspend(void)
* If ADVENT_NOSAVE is defined, gripe instead. */
#if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE
* If ADVENT_NOSAVE is defined, gripe instead. */
#if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE
- rspeak(SAVERESUME_DISABLED)
+ rspeak(SAVERESUME_DISABLED)
;
return GO_TOP;
#endif
FILE *fp = NULL;
return GO_TOP;
#endif
FILE *fp = NULL;
@@
-118,7
+118,7
@@
int resume(void)
* If ADVENT_NOSAVE is defined, gripe instead. */
#if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE
* If ADVENT_NOSAVE is defined, gripe instead. */
#if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE
- rspeak(SAVERESUME_DISABLED)
+ rspeak(SAVERESUME_DISABLED)
;
return GO_TOP;
#endif
FILE *fp = NULL;
return GO_TOP;
#endif
FILE *fp = NULL;
@@
-172,7
+172,7
@@
int restore(FILE* fp)
bool is_valid(struct game_t valgame)
{
/* Save files can be roughly grouped into three groups:
bool is_valid(struct game_t valgame)
{
/* Save files can be roughly grouped into three groups:
- * With valid, reach
e
able state, with valid, but unreachable
+ * With valid, reachable state, with valid, but unreachable
* state and with invalid state. We check that state is
* valid: no states are outside minimal or maximal value
*/
* state and with invalid state. We check that state is
* valid: no states are outside minimal or maximal value
*/