X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=fc85e0e7e33c99ea6631885fa6b37bbe946c531a;hb=b30059bb72674b9470a6610c4b65704bc39f1ccd;hp=393c74dab1e8a5ac6410d09fc26070c5019ad175;hpb=db384731a717729f63d8023c39b12e5e854bf3a8;p=open-adventure.git diff --git a/actions.c b/actions.c index 393c74d..fc85e0e 100644 --- a/actions.c +++ b/actions.c @@ -187,9 +187,10 @@ static phase_codes_t attack(command_t command) } static phase_codes_t bigwords(vocab_t id) -/* FEE FIE FOE FOO (AND FUM). Advance to next state if given in proper order. - * Look up foo in special section of vocab to determine which word we've got. - * Last word zips the eggs back to the giant room (unless already there). */ +/* Only called on FEE FIE FOE FOO (AND FUM). Advance to next state if given + * in proper order. Look up foo in special section of vocab to determine which + * word we've got. Last word zips the eggs back to the giant room (unless + * already there). */ { if ((game.foobar == WORD_EMPTY && id == FEE) || (game.foobar == FEE && id == FIE) || @@ -228,9 +229,9 @@ static phase_codes_t bigwords(vocab_t id) if (game.loc == LOC_GIANTROOM) { rspeak(START_OVER); } else { - /* This is new begavior in Open Adventure - sounds better when + /* This is new behavior in Open Adventure - sounds better when * player isn't in the Giant Room. */ - rspeak(WELL_POINTLESS); + rspeak(NOTHING_HAPPENS); } game.foobar = WORD_EMPTY; return GO_CLEAROBJ; @@ -860,8 +861,10 @@ static phase_codes_t fly(verb_t verb, obj_t obj) game.newloc = LOC_CLIFF; rspeak(RUG_RETURNS); } else { +// LCOV_EXCL_START /* should never happen */ rspeak(NOTHING_HAPPENS); +// LCOV_EXCL_STOP } return GO_TERMINATE; }