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:
+3
-2
@@ -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) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -321,7 +321,8 @@ boolean resuming;
|
|||||||
/******************************************/
|
/******************************************/
|
||||||
|
|
||||||
#ifdef STATUS_HILITES
|
#ifdef STATUS_HILITES
|
||||||
status_eval_next_unhilite();
|
if (iflags.hilite_delta)
|
||||||
|
status_eval_next_unhilite();
|
||||||
#endif
|
#endif
|
||||||
if (context.bypasses)
|
if (context.bypasses)
|
||||||
clear_bypasses();
|
clear_bypasses();
|
||||||
|
|||||||
Reference in New Issue
Block a user