From 08ebae982afa81b28eb7233708b4f67d68dd88b9 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Mon, 9 Dec 2002 07:03:22 +0000 Subject: [PATCH] build fix --- src/shk.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.40.0