diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 32dc6b3c5..0ad6d2aa6 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 wintty.c $NHDT-Date: 1506908980 2017/10/02 01:49:40 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.140 $ */ +/* NetHack 3.6 wintty.c $NHDT-Date: 1520825319 2018/03/12 03:28:39 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.142 $ */ /* Copyright (c) David Cohrs, 1991 */ /* NetHack may be freely redistributed. See license for details. */ @@ -2365,7 +2365,13 @@ register int x, y; /* not xchar: perhaps xchar is unsigned and } debugpline4("bad curs positioning win %d %s (%d,%d)", window, s, x, y); - return; + /* This return statement caused a functional difference between DEBUG and + non-DEBUG operation, so it is being commented out. It caused tty_curs() + to fail to move the cursor to the location it needed to be if the x,y + range checks failed, leaving the next piece of output to be displayed + at whatever random location the cursor happened to be at prior. */ + + /* return; */ } #endif x += cw->offx;