From: cohrs Date: Fri, 11 Oct 2002 21:30:40 +0000 (+0000) Subject: bones while swallowed X-Git-Tag: MOVE2GIT~2376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f66394c2f6a05d50aba52da00a1dd0b42f10d9;p=nethack bones while swallowed Michael pointed out that bones will never occur while swallowed because makemon of the ghost will always fail. I suggested that the outcome made sense, since your body may be digested, torn apart, whatever. But, there was no explicit check for this to make it obvious this was occuring. --- diff --git a/src/bones.c b/src/bones.c index e10b9ae11..b01eb643d 100644 --- a/src/bones.c +++ b/src/bones.c @@ -165,6 +165,9 @@ can_make_bones() return FALSE; if (no_bones_level(&u.uz)) return FALSE; /* no bones for specific levels */ + if (u.uswallow) { + return FALSE; /* no bones when swallowed */ + } if (!Is_branchlev(&u.uz)) { /* no bones on non-branches with portals */ for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap)