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.
This commit is contained in:
+2
-2
@@ -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 */
|
/* Copyright (c) David Cohrs, 1991 */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -3847,7 +3847,7 @@ unsigned long *colormasks;
|
|||||||
/* The core sends trailing blanks for some fields.
|
/* The core sends trailing blanks for some fields.
|
||||||
Let's suppress the trailing blanks */
|
Let's suppress the trailing blanks */
|
||||||
if (tty_status[NOW][fldidx].lth > 0) {
|
if (tty_status[NOW][fldidx].lth > 0) {
|
||||||
p = eos(status_vals[fldidx]);
|
p = status_vals[fldidx];
|
||||||
for (lastchar = eos(p); lastchar > p && *--lastchar == ' '; ) {
|
for (lastchar = eos(p); lastchar > p && *--lastchar == ' '; ) {
|
||||||
*lastchar = '\0';
|
*lastchar = '\0';
|
||||||
tty_status[NOW][fldidx].lth--;
|
tty_status[NOW][fldidx].lth--;
|
||||||
|
|||||||
Reference in New Issue
Block a user