From 34f66394c2f6a05d50aba52da00a1dd0b42f10d9 Mon Sep 17 00:00:00 2001 From: cohrs Date: Fri, 11 Oct 2002 21:30:40 +0000 Subject: [PATCH] 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. --- src/bones.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.40.0