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
|
@ -44,7 +44,7 @@ int suspend(FILE *input)
|
|||
FILE *fp = NULL;
|
||||
|
||||
RSPEAK(SUSPEND_WARNING);
|
||||
if (!YES(input, THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ;
|
||||
if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ;
|
||||
game.saved = game.saved + 5;
|
||||
|
||||
while (fp == NULL) {
|
||||
|
@ -83,7 +83,7 @@ int resume(FILE *input)
|
|||
|
||||
if (game.loc != 1 || game.abbrev[1] != 1) {
|
||||
RSPEAK(RESUME_ABANDON);
|
||||
if (!YES(input, THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ;
|
||||
if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ;
|
||||
}
|
||||
|
||||
while (fp == NULL) {
|
||||
|
@ -123,4 +123,4 @@ int restore(FILE* fp)
|
|||
return GO_TOP;
|
||||
}
|
||||
|
||||
/* end */
|
||||
/* end */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue