projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
same with bear, but without test
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index c5494d0881b74a08004eee902ef6608a53400d68..9c22f66cba2e654d7f829ef51cfc758a336fc61f 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-628,7
+628,6
@@
static int feed(token_t verb, token_t obj)
case BIRD:
rspeak(BIRD_PINING);
break;
case BIRD:
rspeak(BIRD_PINING);
break;
-
case DRAGON:
if (game.prop[DRAGON] != DRAGON_BARS)
rspeak(RIDICULOUS_ATTEMPT);
case DRAGON:
if (game.prop[DRAGON] != DRAGON_BARS)
rspeak(RIDICULOUS_ATTEMPT);
@@
-649,7
+648,8
@@
static int feed(token_t verb, token_t obj)
if (HERE(FOOD)) {
game.dflag += 2;
rspeak(REALLY_MAD);
if (HERE(FOOD)) {
game.dflag += 2;
rspeak(REALLY_MAD);
- }
+ } else
+ rspeak(actions[verb].message);
break;
case BEAR:
if (game.prop[BEAR] == BEAR_DEAD) {
break;
case BEAR:
if (game.prop[BEAR] == BEAR_DEAD) {
@@
-664,12
+664,15
@@
static int feed(token_t verb, token_t obj)
state_change(BEAR, SITTING_BEAR);
} else
rspeak(NOTHING_EDIBLE);
state_change(BEAR, SITTING_BEAR);
} else
rspeak(NOTHING_EDIBLE);
+ break;
}
}
+ rspeak(actions[verb].message);
break;
case OGRE:
if (HERE(FOOD))
rspeak(OGRE_FULL);
break;
case OGRE:
if (HERE(FOOD))
rspeak(OGRE_FULL);
- else rspeak(actions[verb].message);
+ else
+ rspeak(actions[verb].message);
break;
default:
rspeak(AM_GAME);
break;
default:
rspeak(AM_GAME);