From 14ad5356e5b454fc3cbbc953c328c75ff9af60ed Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 10 Apr 2019 04:29:10 -0700 Subject: [PATCH] another STATUS_HILITES optimization When highlighting is disabled due to 'statushilites' being 0, don't bother checking whether any temporary highlights are timing out. --- src/allmain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmain.c b/src/allmain.c index c50dc2ef8..7e2770f4e 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -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(); -- 2.40.0