projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test for urn actions.
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index c25668915aa10b7aa97f62dd6a8aeb96ea5390fd..6936fa279035c61437b6a74fea6b2515d60da047 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-177,6
+177,7
@@
static int blast(void)
game.bonus=135;
RSPEAK(game.bonus);
score(0);
game.bonus=135;
RSPEAK(game.bonus);
score(0);
+ return GO_CLEAROBJ; /* pacify compiler - we never get here */
}
static int vbreak(token_t verb, token_t obj)
}
static int vbreak(token_t verb, token_t obj)
@@
-234,9
+235,9
@@
static int carry(token_t verb, token_t obj)
if (obj == RUG && game.prop[RUG] == 2)spk=222;
if (obj == SIGN)spk=196;
if (obj == MESSAG) {
if (obj == RUG && game.prop[RUG] == 2)spk=222;
if (obj == SIGN)spk=196;
if (obj == MESSAG) {
- spk=190;
- return GO_CLEAROBJ;
+ RSPEAK(190);
DSTROY(MESSAG);
DSTROY(MESSAG);
+ return GO_CLEAROBJ;
}
if (game.fixed[obj] != 0) {
RSPEAK(spk);
}
if (game.fixed[obj] != 0) {
RSPEAK(spk);
@@
-694,7
+695,6
@@
static int listen(void)
static int lock(token_t verb, token_t obj)
/* Lock, unlock, no object given. Assume various things if present. */
{
static int lock(token_t verb, token_t obj)
/* Lock, unlock, no object given. Assume various things if present. */
{
- int k;
int spk = ACTSPK[verb];
if (obj == INTRANSITIVE) {
spk=28;
int spk = ACTSPK[verb];
if (obj == INTRANSITIVE) {
spk=28;
@@
-989,7
+989,6
@@
int action(FILE *input, enum speechpart part, long verb, token_t obj)
* unless verb is "say", which snarfs arbitrary second word.
*/
{
* unless verb is "say", which snarfs arbitrary second word.
*/
{
- int kk;
token_t spk=ACTSPK[verb];
if (part == unknown)
token_t spk=ACTSPK[verb];
if (part == unknown)