]> granicus.if.org Git - nethack/commit
display former possessions of dead monster
authorPatR <rankin@nethack.org>
Fri, 13 May 2022 21:46:02 +0000 (14:46 -0700)
committerPatR <rankin@nethack.org>
Fri, 13 May 2022 21:46:02 +0000 (14:46 -0700)
commit1ce457f801c69937104d0875d9c97faa52ddec2d
treeccb542a3ef70159af379a0d4e870332572736c9f
parent44c225a11ebd6a6126d206045f2bf2db5b6f2383
display former possessions of dead monster

Reported directly to devteam by a hardfought player and also by
entrez.  The recent mon_leaving_level() change resulted in objects
dropped by a dying monster not being displayed immediately.

It justed needed the relobj(mon, 0, FALSE) to relobj(mon, 1, FALSE)
change in m_detach() but this does some related cleanup in
mon_leaving_level()'s callers.  wormgone() takes a long worm off the
map but leaves its stale coordinates set because some code relied on
that.  This takes away the need for that but still doesn't actually
clear them.

This adds redundant 'return' statements at the end of a few void
functions that are longer than fits within a typical screen display.
They make searching for the end of the current routine in an editor
or pager easier without resorting to regular expressions and can
also be used to search for the beginning if/when preceding routine
ends in 'return' too.
doc/fixes3-7-0.txt
src/dog.c
src/mon.c