X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions1.c;h=34ae784043c7b9116f4ad22bca93d97992408f7d;hb=cc618146e8d6236752c4dec2627275c7a3ecafa5;hp=781b996a107f5d373d2bf321e2b0a23e45f25a05;hpb=aba35733e76f78f22aee3a3d7f677c39bd32e90d;p=open-adventure.git diff --git a/actions1.c b/actions1.c index 781b996..34ae784 100644 --- a/actions1.c +++ b/actions1.c @@ -12,7 +12,7 @@ /* Analyse a verb. Remember what it was, go back for object if second word * unless verb is "say", which snarfs arbitrary second word. - * Takes K, OBJ, and VERB as inputs. + * FIXME: Takes K and VERB as additional inputs. */ int action(FILE *input, long STARTAT, long obj) { @@ -310,7 +310,7 @@ L9094: DROP(JADE,game.loc); /* Attack also moved into separate module. */ -L9120: return(attack(input, obj)); +L9120: return(attack(input, obj, VERB)); /* Pour. If no object, or object is bottle, assume contents of bottle. * special tests for pouring water or oil on plant or rusty door. */ @@ -390,7 +390,7 @@ L9160: if(obj != LAMP)SPK=76; /* Throw moved into separate module. */ -L9170: return(throw(input, obj)); +L9170: return(throw(input, obj, VERB)); /* Quit. Intransitive only. Verify intent and exit if that's what he wants. */