Fixed feed command and white space in tests
authorNHOrus <jy6x2b32pie9@yahoo.com>
Wed, 5 Jul 2017 17:03:55 +0000 (20:03 +0300)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 5 Jul 2017 19:41:36 +0000 (15:41 -0400)
actions.c
tests/axeorama.chk

index c5494d0881b74a08004eee902ef6608a53400d68..5ead1f22d234ed0e259a3d5981c09af74829ff8d 100644 (file)
--- 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);
index 7f1569bb9ec535a7915e1c5e8577fac4cf0595d4..88cb1ca5d965be5a54599e2840d63f3fcd54a8ed 100644 (file)
@@ -572,7 +572,7 @@ You're in Bedquilt.
 
 > feed dwarf
 
-There is nothing here to eat. 
+There is nothing here to eat.
 
 > throw axe