From: David Griffith Date: Tue, 8 Sep 2015 18:22:08 +0000 (-0700) Subject: Minor typos and an if-rearrangement. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=56a1bd16b9e02ad15219926e2d9dda4a5616f72a;p=liskon_frotz.git Minor typos and an if-rearrangement. --- diff --git a/Makefile b/Makefile index 507cc58..e407eb7 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ CURSES = -lcurses # #CURSES_DEF = -DUSE_NCURSES_H -# Uncomment this if youy're compiling Unix Frotz on a machine that lacks +# Uncomment this if you're compiling Unix Frotz on a machine that lacks # the strrchr() libc library call. If you don't know what this means, # leave it alone. # diff --git a/src/common/input.c b/src/common/input.c index 50cf52c..52adfa1 100644 --- a/src/common/input.c +++ b/src/common/input.c @@ -242,10 +242,7 @@ void z_read (void) } - if (truncate_question_mark()) { - if (buffer[i] == '?') - buffer[i] = ' '; - } + if (truncate_question_mark() && buffer[i] == '?') buffer[i] = ' '; storeb ((zword) (zargs[0] + ((h_version <= V4) ? 1 : 2) + i), translate_to_zscii (buffer[i])); @@ -340,18 +337,18 @@ void z_read_mouse (void) /* * truncate_question_mark * - * check if this game is one that expects theinterpreter to truncate a + * check if this game is one that expects the interpreter to truncate a * trailing question mark from the input buffer. * * For some games, Infocom modified the interpreter to truncate trailing * question marks. Presumably this was to make it easier to deal with * questions asked of the narrator or interpreter, such as "WHAT IS A * GRUE?". This is a deviation from the Z-Machine Standard (written - * after Infocom's demise). Some interpreters written later - * incorrectly truncate aswell. In the interest of making sure the - * original Infocom games play exactly as they did with Infocom's own - * interpreters, this function checks for those games that expect the - * trailing question mark to be truncated. + * after Infocom's demise). Some interpreters written later incorrectly + * always truncate trailing punctuation. In the interest of making sure + * the original Infocom games play exactly as they did with Infocom's + * own interpreters, this function checks for those games that expect + * the trailing question mark to be truncated. * */ static bool truncate_question_mark(void)