]> granicus.if.org Git - nethack/commitdiff
build fix
authornethack.rankin <nethack.rankin>
Mon, 9 Dec 2002 07:03:22 +0000 (07:03 +0000)
committernethack.rankin <nethack.rankin>
Mon, 9 Dec 2002 07:03:22 +0000 (07:03 +0000)
src/shk.c

index 539c66ebd1a2cb10d0f05f5eafb0cab336584642..57a587baaf6d81d309ac5c194893231b597947ba 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -1566,13 +1566,15 @@ static coord repo_location;     /* repossession context */
 /* routine called after dying (or quitting) */
 boolean
 paybill(croaked)
-boolean croaked;
+int croaked;   /* -1: escaped dungeon; 0: quit; 1: died */
 {
        register struct monst *mtmp, *mtmp2, *resident= (struct monst *)0;
        register boolean taken = FALSE;
        register int numsk = 0;
 
-       /* if we escaped from the dungeon, shopkeepers can't reach us */
+       /* if we escaped from the dungeon, shopkeepers can't reach us;
+          shops don't occur on level 1, but this could happen if hero
+          level teleports out of the dungeon and manages not to die */
        if (croaked < 0) return FALSE;
 
        /* this is where inventory will end up if any shk takes it */