From: NHOrus Date: Wed, 5 Jul 2017 17:03:55 +0000 (+0300) Subject: Fixed feed command and white space in tests X-Git-Tag: takebird~3 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=603f548a215a0118dc3270d094671199eb28beab Fixed feed command and white space in tests --- diff --git a/actions.c b/actions.c index c5494d0..5ead1f2 100644 --- a/actions.c +++ b/actions.c @@ -649,7 +649,8 @@ static int feed(token_t verb, token_t obj) if (HERE(FOOD)) { game.dflag += 2; rspeak(REALLY_MAD); - } + } else + rspeak(actions[verb].message); break; case BEAR: if (game.prop[BEAR] == BEAR_DEAD) { @@ -669,7 +670,8 @@ static int feed(token_t verb, token_t obj) case OGRE: if (HERE(FOOD)) rspeak(OGRE_FULL); - else rspeak(actions[verb].message); + else + rspeak(actions[verb].message); break; default: rspeak(AM_GAME); diff --git a/tests/axeorama.chk b/tests/axeorama.chk index 7f1569b..88cb1ca 100644 --- a/tests/axeorama.chk +++ b/tests/axeorama.chk @@ -572,7 +572,7 @@ You're in Bedquilt. > feed dwarf -There is nothing here to eat. +There is nothing here to eat. > throw axe