Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

This commit is contained in:
nhmall
2018-11-10 15:09:02 -05:00
24 changed files with 231 additions and 74 deletions

View File

@@ -748,6 +748,8 @@ tty_delay_output()
#if defined(MICRO)
register int i;
#endif
if (iflags.debug_fuzzer)
return;
#ifdef TIMED_DELAY
if (flags.nap) {
(void) fflush(stdout);

View File

@@ -186,6 +186,8 @@ more()
/* avoid recursion -- only happens from interrupts */
if (ttyDisplay->inmore++)
return;
if (iflags.debug_fuzzer)
return;
if (ttyDisplay->toplin) {
tty_curs(BASE_WINDOW, cw->curx + 1, cw->cury);

View File

@@ -3344,6 +3344,9 @@ tty_nhgetch()
*/
if (WIN_MESSAGE != WIN_ERR && wins[WIN_MESSAGE])
wins[WIN_MESSAGE]->flags &= ~WIN_STOP;
if (iflags.debug_fuzzer) {
i = randomkey();
} else {
#ifdef UNIX
i = (++nesting == 1) ? tgetch()
: (read(fileno(stdin), (genericptr_t) &nestbuf, 1)
@@ -3352,6 +3355,7 @@ tty_nhgetch()
#else
i = tgetch();
#endif
}
if (!i)
i = '\033'; /* map NUL to ESC since nethack doesn't expect NUL */
else if (i == EOF)