]> granicus.if.org Git - nethack/commit
fix #H1996 - digging message for missing boulder
authornethack.rankin <nethack.rankin>
Sat, 22 Aug 2009 00:02:09 +0000 (00:02 +0000)
committernethack.rankin <nethack.rankin>
Sat, 22 Aug 2009 00:02:09 +0000 (00:02 +0000)
commite450ca626d91b6fb56048e2ca8cb5e358d938587
treeb9491af4899323d3fd79d3602dffe2328b59f9d0
parentd918d329eaf1230ca5ba758531613f3698f5a108
fix #H1996 - digging message for missing boulder

     From a bug report, it was possible to get
|You hit the  with all your might.  You stop digging.
if a boulder went away--in his case, it was picked up by a giant--while
you were occupied trying to break it with a pick-axe.  The code explicitly
used "" to fill in the message when dig_target had an unexpected value.

     This just avoids giving the message in a case like this.  Possibly
extra stop_occupation() calls should be done instead, but I didn't want
to try to figure out how many would be needed (monster picks up object,
monster zaps wand of striking, others?).
doc/fixes34.4
src/dig.c