From: PatR Date: Sat, 8 Dec 2018 00:37:24 +0000 (-0800) Subject: gold highlight bit X-Git-Tag: nmake-explicit-path~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8a5ff6dffd2b98bdc29bab208f6630389c1ece6;p=nethack gold highlight bit Keep type/value straight: 'update_all' is boolean, not ordinary int. --- diff --git a/src/botl.c b/src/botl.c index e0008d2b5..2fa84afe0 100644 --- a/src/botl.c +++ b/src/botl.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 botl.c $NHDT-Date: 1544171789 2018/12/07 08:36:29 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.128 $ */ +/* NetHack 3.6 botl.c $NHDT-Date: 1544229439 2018/12/08 00:37:19 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.129 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2006. */ /* NetHack may be freely redistributed. See license for details. */ @@ -733,15 +733,14 @@ boolean *valsetlist; * 25 = the gold amount * * Setting 'chg = 2' is enough to render the field properly, but - * not to honor an initial highlight, so force 'update_all = 1'. + * not to honor an initial highlight, so force 'update_all = TRUE'. */ - if (fld == BL_GOLD) { - if (context.rndencode != oldrndencode - || showsyms[COIN_CLASS + SYM_OFF_O] != oldgoldsym) { - update_all = 1; /* chg = 2; */ - oldrndencode = context.rndencode; - oldgoldsym = showsyms[COIN_CLASS + SYM_OFF_O]; - } + if (fld == BL_GOLD + && (context.rndencode != oldrndencode + || showsyms[COIN_CLASS + SYM_OFF_O] != oldgoldsym)) { + update_all = TRUE; /* chg = 2; */ + oldrndencode = context.rndencode; + oldgoldsym = showsyms[COIN_CLASS + SYM_OFF_O]; } reset = FALSE;