]> granicus.if.org Git - nethack/commitdiff
tty status fix
authorPatR <rankin@nethack.org>
Wed, 27 Mar 2019 19:55:42 +0000 (12:55 -0700)
committerPatR <rankin@nethack.org>
Wed, 27 Mar 2019 19:55:42 +0000 (12:55 -0700)
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

index 212cd2997ab05e9b438e8865f6bef895e0996592..b7ad2bf5bba14b7e0b7e48ff8d5c5e13cf19022c 100644 (file)
@@ -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--;