X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=saveresume.c;h=c8ba37abb59a11b268d31790f010a768616e0d83;hp=20b6344c1bfd2d93a107f6c973853f22d9efd211;hb=3215930f646e7911d541bb1d29c73e9eb19db477;hpb=04eca720d9a5282b47f51c5d19910a094f3d1882 diff --git a/saveresume.c b/saveresume.c index 20b6344..c8ba37a 100644 --- a/saveresume.c +++ b/saveresume.c @@ -43,8 +43,8 @@ int suspend(void) long i, k; FILE *fp = NULL; - RSPEAK(SUSPEND_WARNING); - if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; + rspeak(SUSPEND_WARNING); + if (!YES(arbitrary_messages[THIS_ACCEPTABLE], arbitrary_messages[OK_MAN], arbitrary_messages[OK_MAN])) return GO_CLEAROBJ; game.saved = game.saved + 5; while (fp == NULL) { @@ -67,7 +67,7 @@ int suspend(void) save.bivalve = OBJTXT[OYSTER]; IGNORE(fwrite(&save, sizeof(struct save_t), 1, fp)); fclose(fp); - RSPEAK(RESUME_HELP); + rspeak(RESUME_HELP); exit(0); } @@ -82,8 +82,8 @@ int resume(void) FILE *fp = NULL; if (game.loc != 1 || game.abbrev[1] != 1) { - RSPEAK(RESUME_ABANDON); - if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; + rspeak(RESUME_ABANDON); + if (!YES(arbitrary_messages[THIS_ACCEPTABLE], arbitrary_messages[OK_MAN], arbitrary_messages[OK_MAN])) return GO_CLEAROBJ; } while (fp == NULL) { @@ -111,9 +111,7 @@ int restore(FILE* fp) IGNORE(fread(&save, sizeof(struct save_t), 1, fp)); fclose(fp); if (save.version != VRSION) { - SETPRM(1, save.version / 10, MOD(save.version, 10)); - SETPRM(3, VRSION / 10, MOD(VRSION, 10)); - RSPEAK(VERSION_SKEW); + rspeak(VERSION_SKEW, save.version / 10, MOD(save.version, 10), VRSION / 10, MOD(VRSION, 10)); } else { memcpy(&game, &save.game, sizeof(struct game_t)); OBJSND[BIRD] = save.bird;