]> granicus.if.org Git - nethack/commit
U162 - killing shopkeeper with unpaid thrown objects
authorcohrs <cohrs>
Thu, 13 Feb 2003 07:52:49 +0000 (07:52 +0000)
committercohrs <cohrs>
Thu, 13 Feb 2003 07:52:49 +0000 (07:52 +0000)
commitd1fdc497d22b42df868bd2af3e1c4d101fdfa5a0
tree3d2b1221c2726333f665cfd941f14c679725a880
parent6885f18bb11132b873be018ab37ca0ff8825b233
U162 - killing shopkeeper with unpaid thrown objects
While an object is being thrown, it isn't on any list.  This means that
killing a shopkeeper with an unpaid object wouldn't be able to clear the
unpaid bit.  By the time the object lands, the shopkeeper is gone, and then
it's too late.  Added a new global to track a thrown object, set it and later
clear it in throwit(), also clear it as needed in dealloc_obj(), and check
it in setpaid().  It should be possible to use this global to avoid losing
thrown objects during hangup saves as well.  But that can wait.
doc/fixes34.1
src/dothrow.c
src/mkobj.c
src/shk.c