From: nhmall Date: Sat, 12 May 2018 18:42:19 +0000 (-0400) Subject: empty field suppression caught condition values unintentionally X-Git-Tag: NetHack-3.6.2_Released~280^2~7^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=149fc5a4dd2854f3ee757d5575379f86da425eae;p=nethack empty field suppression caught condition values unintentionally --- diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 4562788db..dbfc6d863 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -3631,8 +3631,8 @@ unsigned long *colormasks; /* The core botl engine sends a single blank to the window port for carrying-capacity when its unused. Let's suppress that */ - if (tty_status[NOW][fldidx].lth == 1 && - status_vals[fldidx][0] == ' ') { + if (tty_status[NOW][fldidx].lth == 1 + && status_vals[fldidx][0] == ' ') { status_vals[fldidx][0] = '\0'; tty_status[NOW][fldidx].lth = 0; } @@ -3805,7 +3805,7 @@ render_status(VOID_ARGS) * Ignore zero length fields. check_fields() didn't count * them in either. */ - if (!tty_status[NOW][fldidx].lth) + if (!tty_status[NOW][fldidx].lth && fldidx != BL_CONDITION) continue; if (fldidx == BL_CONDITION) {