From: nethack.rankin Date: Mon, 9 Dec 2002 07:03:22 +0000 (+0000) Subject: build fix X-Git-Tag: MOVE2GIT~2313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08ebae982afa81b28eb7233708b4f67d68dd88b9;p=nethack build fix --- diff --git a/src/shk.c b/src/shk.c index 539c66ebd..57a587baa 100644 --- 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 */