Nothing but FOO can start a magic-word sequence,

100% coverage ans oldcompare passes.
This commit is contained in:
Eric S. Raymond 2023-04-03 06:10:12 -04:00
parent 20cb8b9ffb
commit 0a1f5dbb43
3 changed files with 17 additions and 4 deletions

View file

@ -194,6 +194,11 @@ static phase_codes_t bigwords(vocab_t id)
{
int foobar = abs(game.foobar);
if ((foobar == WORD_EMPTY) && (id == FIE || id == FOE || id == FOO || id == FUM)) {
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
}
if ((foobar == WORD_EMPTY && id == FEE) ||
(foobar == FEE && id == FIE) ||
(foobar == FIE && id == FOE) ||