Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user