gold highlight bit
Keep type/value straight: 'update_all' is boolean, not ordinary int.
This commit is contained in:
17
src/botl.c
17
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) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Michael Allison, 2006. */
|
/*-Copyright (c) Michael Allison, 2006. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -733,15 +733,14 @@ boolean *valsetlist;
|
|||||||
* 25 = the gold amount
|
* 25 = the gold amount
|
||||||
*
|
*
|
||||||
* Setting 'chg = 2' is enough to render the field properly, but
|
* 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 (fld == BL_GOLD
|
||||||
if (context.rndencode != oldrndencode
|
&& (context.rndencode != oldrndencode
|
||||||
|| showsyms[COIN_CLASS + SYM_OFF_O] != oldgoldsym) {
|
|| showsyms[COIN_CLASS + SYM_OFF_O] != oldgoldsym)) {
|
||||||
update_all = 1; /* chg = 2; */
|
update_all = TRUE; /* chg = 2; */
|
||||||
oldrndencode = context.rndencode;
|
oldrndencode = context.rndencode;
|
||||||
oldgoldsym = showsyms[COIN_CLASS + SYM_OFF_O];
|
oldgoldsym = showsyms[COIN_CLASS + SYM_OFF_O];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reset = FALSE;
|
reset = FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user