remove a set_uasmon() call from iter_mons() processing

Reported by hackemslashem.
This commit is contained in:
nhmall
2025-02-05 07:57:25 -05:00
parent d611da42cc
commit 0d543a8fae
4 changed files with 11 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ moveloop_core(void)
struct monst *mtmp;
/* set up for a new turn */
gw.were_changes = 0L;
mcalcdistress(); /* adjust monsters' trap, blind, etc */
/* reallocate movement rations to monsters; don't need
@@ -324,6 +325,11 @@ moveloop_core(void)
(void) dosearch0(1);
if (Warning)
warnreveal();
if (gw.were_changes) {
/* update innate intrinsics (mainly Drain_resistance) */
set_uasmon();
gw.were_changes = 0L;
}
mkot_trap_warn();
dosounds();
do_storms();