-/* NetHack 3.6 botl.c $NHDT-Date: 1469930895 2016/07/31 02:08:15 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.75 $ */
+/* NetHack 3.6 botl.c $NHDT-Date: 1506903619 2017/10/02 00:20:19 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.81 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
STATIC_OVL NEARDATA int mrank_sz = 0; /* loaded by max_rank_sz (from u_init) */
STATIC_DCL const char *NDECL(rank);
+#ifdef STATUS_HILITES
STATIC_DCL void NDECL(bot_via_windowport);
+#endif
static char *
get_strength_str()
return buf;
}
+#ifdef STATUS_HILITES
STATIC_OVL void
s_to_anything(a, buf, anytype)
anything *a;
}
return;
}
+#endif /* STATUS_HILITES */
STATIC_OVL int
percentage(bl, maxbl)
-/* NetHack 3.6 wintty.c $NHDT-Date: 1463614572 2016/05/18 23:36:12 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.131 $ */
+/* NetHack 3.6 wintty.c $NHDT-Date: 1506903624 2017/10/02 00:20:24 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.139 $ */
/* Copyright (c) David Cohrs, 1991 */
/* NetHack may be freely redistributed. See license for details. */
static long tty_condition_bits;
static int tty_status_colors[MAXBLSTATS];
int hpbar_percent, hpbar_color;
-#endif /* STATUS_HILITES */
static int FDECL(condcolor, (long, unsigned long *));
static int FDECL(condattr, (long, unsigned long *));
-
+#endif /* STATUS_HILITES */
void
tty_status_init()
{
+#ifdef STATUS_HILITES
int i;
- /* let genl_status_init do most of the initialization */
- genl_status_init();
-
-#ifdef STATUS_HILITES
- for (i = 0; i < MAXBLSTATS; ++i) {
+ for (i = 0; i < MAXBLSTATS; ++i)
tty_status_colors[i] = NO_COLOR; /* no color */
- }
+ tty_condition_bits = 0L;
+ hpbar_percent = 0, hpbar_color = NO_COLOR;
#endif /* STATUS_HILITES */
+
+ /* let genl_status_init do most of the initialization */
+ genl_status_init();
}
/*
int coloridx = NO_COLOR;
#endif
char *text = (char *) ptr;
- static boolean oncearound = FALSE; /* prevent premature partial status display */
+ static boolean oncearound = FALSE; /* prevent premature partial display */
enum statusfields fieldorder[2][15] = {
{ BL_TITLE, BL_STR, BL_DX, BL_CO, BL_IN, BL_WI, BL_CH, BL_ALIGN,
BL_SCORE, BL_FLUSH, BL_FLUSH, BL_FLUSH, BL_FLUSH, BL_FLUSH,
long bm;
unsigned long *bmarray;
{
-#ifdef STATUS_HILITES
int i;
if (bm && bmarray)
if (bmarray[i] && (bm & bmarray[i]))
return i;
}
-#endif
return NO_COLOR;
}
#endif /* TEXTCOLOR */
}
#endif /* STATUS_HILITES */
-
#endif /* TTY_GRAPHICS */
/*wintty.c*/