]> granicus.if.org Git - nethack/commitdiff
Comment out nhassert() calls.
authorBart House <bart@barthouse.com>
Fri, 12 Jul 2019 04:23:12 +0000 (21:23 -0700)
committerBart House <bart@barthouse.com>
Fri, 12 Jul 2019 04:23:12 +0000 (21:23 -0700)
win/tty/topl.c
win/tty/wintty.c

index bb79be26c060aaa41e54ad1f05d428a8b4ea6717..14e9bc548982e32c6c020c402a67e2681e81b484 100644 (file)
@@ -259,7 +259,7 @@ register const char *bp;
         && cw->cury == 0
         && n0 + (int) strlen(toplines) + 3 < CO - 8 /* room for --More-- */
         && (notdied = strncmp(bp, "You die", 7)) != 0) {
-        nhassert(strlen(toplines) == cw->curx);
+        /* nhassert(strlen(toplines) == cw->curx); */
         Strcat(toplines, "  ");
         Strcat(toplines, bp);
         cw->curx += 2;
@@ -313,7 +313,7 @@ char c;
         if (ttyDisplay->curx == 0 && ttyDisplay->cury > 0)
             tty_curs(BASE_WINDOW, CO, (int) ttyDisplay->cury - 1);
         backsp();
-        nhassert(ttyDisplay->curx > 0);
+        /* nhassert(ttyDisplay->curx > 0); */
         ttyDisplay->curx--;
         cw->curx = ttyDisplay->curx;
         return;
@@ -708,8 +708,8 @@ boolean restoring_msghist;
         dumplogmsg(toplines);
 #endif
     } else if (snapshot_mesgs) {
-        nhassert(ttyDisplay == NULL ||
-                 ttyDisplay->toplin != TOPLINE_NEED_MORE);
+        /* nhassert(ttyDisplay == NULL ||
+                 ttyDisplay->toplin != TOPLINE_NEED_MORE); */
 
         /* done putting arbitrary messages in; put the snapshot ones back */
         for (idx = 0; snapshot_mesgs[idx]; ++idx) {
index 0422129fd85a85570115254c50d2dcaaaa98ff07..8ea315ab14205004fe404896cfa77228757186a5 100644 (file)
@@ -2321,7 +2321,7 @@ boolean blocking; /* with ttys, all windows are blocking */
             more();
             ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
             tty_clear_nhwindow(window);
-            nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
+            /* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
         } else
             ttyDisplay->toplin = TOPLINE_EMPTY;
         cw->curx = cw->cury = 0;
@@ -2409,7 +2409,7 @@ winid window;
     case NHW_MESSAGE:
         if (ttyDisplay->toplin != TOPLINE_EMPTY)
             tty_display_nhwindow(WIN_MESSAGE, TRUE);
-        nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
+        /* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
         /*FALLTHRU*/
     case NHW_STATUS:
     case NHW_BASE:
@@ -3164,7 +3164,7 @@ const char *mesg;
         more();
         ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
         tty_clear_nhwindow(WIN_MESSAGE);
-        nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
+        /* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
     }
     /* normally <ESC> means skip further messages, but in this case
        it means cancel the current prompt; any other messages should