]> granicus.if.org Git - nethack/commit
status updating: a*.c
authorPatR <rankin@nethack.org>
Sat, 23 Mar 2019 17:50:26 +0000 (10:50 -0700)
committerPatR <rankin@nethack.org>
Sat, 23 Mar 2019 17:50:26 +0000 (10:50 -0700)
commitc57b32f5fe73ce1bb7947fb9dd591f3e1c162256
tree215bee14567d3fd271cb19362b02522c2b7424e5
parent02bf042ab43da1354520a5cfd13fc8488f6e4ad7
status updating: a*.c

I went through the places that set context.botl/botlx in src/a*.c to
see whether I could find any unnecessary status updates.  I didn't
find anything interesting, mostly some minor sequencing issues plus
a couple of redundant sets (call foo() which includes setting botl,
then explicitly set botl after it returns).  If you issue pline first
and then set context.botl, bottom lines won't be updated until the
next message or next pass through moveloop.  If you order those the
other way around, status will be updated as the message describing
the reason for the update is being delivered.
src/allmain.c
src/apply.c
src/artifact.c
src/attrib.c