projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't forget to ask important questions when removing restore of saves
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 5f7cd3fe2788d49ac449491d68ddc2ddad590acf..8c8b47c558033adbc913cc4bf64c78927ec6f471 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-116,6
+116,10
@@
int main(int argc, char *argv[])
} else {
restore(rfp);
}
} else {
restore(rfp);
}
+#else
+ game.novice = yes(arbitrary_messages[WELCOME_YOU], arbitrary_messages[CAVE_NEARBY], arbitrary_messages[NO_MESSAGE]);
+ if (game.novice)
+ game.limit = NOVICELIMIT;
#endif
if (settings.logfp)
#endif
if (settings.logfp)
@@
-1014,9
+1018,7
@@
static bool do_command()
listobjects();
L2012:
listobjects();
L2012:
- command.verb = 0;
game.oldobj = command.obj;
game.oldobj = command.obj;
- command.obj = 0;
L2600:
checkhints();
L2600:
checkhints();
@@
-1047,10
+1049,12
@@
L2600:
return (false);
if (word_count(input) > 2) {
rspeak(TWO_WORDS);
return (false);
if (word_count(input) > 2) {
rspeak(TWO_WORDS);
+ free(input);
continue;
}
if (strcmp(input, "") != 0)
break;
continue;
}
if (strcmp(input, "") != 0)
break;
+ free(input);
}
strncpy(inputbuf, input, LINESIZE - 1);
}
strncpy(inputbuf, input, LINESIZE - 1);