X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=33ec95ba0b96e6af01ae87c54c23fb3663e4b4f1;hb=f84c5033e9f1666c5fa3f8151820664bfc3d0dde;hp=9899b08681b89443a814a09c55cf891f5d9d355a;hpb=83ff9d0c0edda5c08d9966e75addc8cd806cfe6d;p=open-adventure.git diff --git a/misc.c b/misc.c index 9899b08..33ec95b 100644 --- a/misc.c +++ b/misc.c @@ -250,7 +250,7 @@ char* get_input() return (input); } -bool YES(vocab_t question, vocab_t yes_response, vocab_t no_response) +bool YES(const char* question, const char* yes_response, const char* no_response) /* Print message X, wait for yes/no answer. If yes, print Y and return true; * if no, print Z and return false. */ { @@ -258,7 +258,7 @@ bool YES(vocab_t question, vocab_t yes_response, vocab_t no_response) bool outcome; for (;;) { - RSPEAK(question); + speak(question); reply = get_input(); @@ -276,11 +276,11 @@ bool YES(vocab_t question, vocab_t yes_response, vocab_t no_response) free(firstword); if (yes == 0 || y == 0) { - RSPEAK(yes_response); + speak(yes_response); outcome = true; break; } else if (no == 0 || n == 0) { - RSPEAK(no_response); + speak(no_response); outcome = false; break; } else