From 4867badd61cedab36c6c82a7d7bf219a860417f3 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 27 Mar 2019 12:55:42 -0700 Subject: [PATCH] tty status fix Yesterday's hitpointbar patch had a mistake in an unrelated change. Simplifying the stripping of trailing spaces from hunger and leveldesc broke that. --- win/tty/wintty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 212cd2997..b7ad2bf5b 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 wintty.c $NHDT-Date: 1553653619 2019/03/27 02:26:59 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.197 $ */ +/* NetHack 3.6 wintty.c $NHDT-Date: 1553716531 2019/03/27 19:55:31 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.198 $ */ /* Copyright (c) David Cohrs, 1991 */ /* NetHack may be freely redistributed. See license for details. */ @@ -3847,7 +3847,7 @@ unsigned long *colormasks; /* The core sends trailing blanks for some fields. Let's suppress the trailing blanks */ if (tty_status[NOW][fldidx].lth > 0) { - p = eos(status_vals[fldidx]); + p = status_vals[fldidx]; for (lastchar = eos(p); lastchar > p && *--lastchar == ' '; ) { *lastchar = '\0'; tty_status[NOW][fldidx].lth--;