]> granicus.if.org Git - nethack/commitdiff
Removing assertion that does not hold under all scenarios.
authorBart House <bart@barthouse.com>
Sat, 13 Jul 2019 17:53:53 +0000 (10:53 -0700)
committerBart House <bart@barthouse.com>
Mon, 19 Oct 2020 23:03:10 +0000 (16:03 -0700)
When we save gamestate as part of making an insurance snapshot, we will
save message history which will clear toplines but leaving window state
in tack including the need for more.

win/tty/topl.c

index d3ad9f6ede39a1e5085b3701afd91972aa11ad3a..1802d69444996562deef5da12cf4f98e4bede7c0 100644 (file)
@@ -259,7 +259,6 @@ register const char *bp;
         && cw->cury == 0
         && n0 + (int) strlen(g.toplines) + 3 < CO - 8 /* room for --More-- */
         && (notdied = strncmp(bp, "You die", 7)) != 0) {
-        nhassert(strlen(g.toplines) == cw->curx);
         Strcat(g.toplines, "  ");
         Strcat(g.toplines, bp);
         cw->curx += 2;