another STATUS_HILITES optimization

When highlighting is disabled due to 'statushilites' being 0, don't
bother checking whether any temporary highlights are timing out.
This commit is contained in:
PatR
2019-04-10 04:29:10 -07:00
parent 2e30f6916f
commit 14ad5356e5

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 allmain.c $NHDT-Date: 1554857127 2019/04/10 00:45:27 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.98 $ */
/* NetHack 3.6 allmain.c $NHDT-Date: 1554895741 2019/04/10 11:29:01 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.99 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
@@ -321,7 +321,8 @@ boolean resuming;
/******************************************/
#ifdef STATUS_HILITES
status_eval_next_unhilite();
if (iflags.hilite_delta)
status_eval_next_unhilite();
#endif
if (context.bypasses)
clear_bypasses();