bones fix

From the newsgroup:  leash found inside a bones level shop was flagged
as "in use".  3.4.0 had a fix for that which works for most cases, but not
when the shopkeeper has taken the dead character's inventory just before
saving the bones file.

     This also adds an entry to the branch copy of fixes34.2 to synchronize
it with the trunk copy.
This commit is contained in:
nethack.rankin
2003-05-08 07:23:11 +00:00
parent f38ebb5a21
commit 33d3c2581e
2 changed files with 5 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ help display for "list of game options" misformats runmode and scroll_amount
pit created by land mine explosion doesn't start out concealed
update map display sooner when pushed boulder triggers land mine explosion
prevent fatal error from prompt string overflow in lift_object()
make sure that leashed monsters are released prior to shopkeeper inheriting
dead character's inventory
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)shk.c 3.4 2003/01/08 */
/* SCCS Id: @(#)shk.c 3.4 2003/05/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1754,6 +1754,8 @@ finish_paybill()
#if 0 /* don't bother */
if (ox == 0 && oy == 0) impossible("finish_paybill: no location");
#endif
/* normally done by savebones(), but that's too late in this case */
unleash_all();
/* transfer all of the character's inventory to the shop floor */
while ((otmp = invent) != 0) {
otmp->owornmask = 0L; /* perhaps we should call setnotworn? */