Revert "Added nhassert to core."

This reverts commit 0ca299acb3.
This commit is contained in:
Bart House
2019-07-14 21:15:54 -07:00
parent a90f9d4365
commit fe9fc4cac1
7 changed files with 27 additions and 19 deletions
+4 -4
View 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) {