static int read(FILE *input, token_t verb, token_t obj)
/* Read. Print stuff based on objtxt. Oyster (?) is special case. */
{
- int i;
int spk = ACTSPK[verb];
if (obj == INTRANSITIVE) {
obj = 0;
- for (i=1; i<=NOBJECTS; i++) {
+ for (int i=1; i<=NOBJECTS; i++) {
if (HERE(i) && OBJTXT[i] != 0 && game.prop[i] >= 0)
obj = obj * NOBJECTS + i;
}
case intransitive:
if (WD2 > 0 && verb != SAY) return(2800);
if (verb == SAY)obj=WD2;
- if (obj == 0) {
+ if (obj == 0 || obj == INTRANSITIVE) {
/* Analyse an intransitive verb (ie, no object given yet). */
switch (verb-1) {
case 0: /* CARRY */ return carry(verb, INTRANSITIVE);