projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dd1ccc
)
Add explanatory comment.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 3 Apr 2023 13:42:55 +0000
(09:42 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 3 Apr 2023 13:42:55 +0000
(09:42 -0400)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index 05c59d5def25b248365282abbf6dfcf184c02489..27364b7b2e034706372d7ffd92a22a0a71cc5be4 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-194,6
+194,7
@@
static phase_codes_t bigwords(vocab_t id)
{
int foobar = abs(game.foobar);
+ /* Only FEE can start a magic-word sequence. */
if ((foobar == WORD_EMPTY) && (id == FIE || id == FOE || id == FOO || id == FUM)) {
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
@@
-229,6
+230,7
@@
static phase_codes_t bigwords(vocab_t id)
return GO_CLEAROBJ;
}
} else {
+ /* Magic-word sequebce was started but is incorrect */
rspeak(START_OVER);
game.foobar = WORD_EMPTY;
return GO_CLEAROBJ;