Gut and rebuild YES() with cleaner approach that doesn't rely on packing.
The new support functions get_input() and echo_input() (and others not made yet) will eventually replace GETIN() and MAPLIN().
This commit is contained in:
parent
0dd961701f
commit
550734fd3f
6 changed files with 116 additions and 25 deletions
|
@ -792,7 +792,7 @@ static int pour(token_t verb, token_t obj)
|
|||
static int quit(FILE *input)
|
||||
/* Quit. Intransitive only. Verify intent and exit if that's what he wants. */
|
||||
{
|
||||
if (YES(input, REALLY_QUIT, OK_MAN, OK_MAN))
|
||||
if (YES(REALLY_QUIT, OK_MAN, OK_MAN))
|
||||
terminate(quitgame);
|
||||
return GO_CLEAROBJ;
|
||||
}
|
||||
|
@ -820,7 +820,7 @@ static int read(FILE *input, token_t verb, token_t obj)
|
|||
return GO_CLEAROBJ;
|
||||
}
|
||||
if (obj == OYSTER && !game.clshnt) {
|
||||
game.clshnt = YES(input, CLUE_QUERY, WAYOUT_CLUE, OK_MAN);
|
||||
game.clshnt = YES(CLUE_QUERY, WAYOUT_CLUE, OK_MAN);
|
||||
return GO_CLEAROBJ;
|
||||
}
|
||||
PSPEAK(obj, OBJTXT[obj] + game.prop[obj]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue