]> granicus.if.org Git - nethack/commitdiff
Revert "Removing assertion that does not hold under all scenarios."
authorBart House <bart@barthouse.com>
Mon, 15 Jul 2019 04:13:18 +0000 (21:13 -0700)
committerBart House <bart@barthouse.com>
Mon, 15 Jul 2019 04:13:18 +0000 (21:13 -0700)
This reverts commit c44ad5645d90267e7ed1d1a6c57acc1437dca10e.

win/tty/topl.c

index 74331decec8e6e29ccc776384799f2ca06a62aff..cfd17838d460e4a425e0af6f33ef45ed92a1eb96 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((long) strlen(toplines) == cw->curx); */
+        nhassert((long) strlen(toplines) == cw->curx);
         Strcat(toplines, "  ");
         Strcat(toplines, bp);
         cw->curx += 2;