giant carrying boulder dies while trapped in a pit (trunk only)

<Someone> wrote:
> "You kill the invisible storm giant.  The boulder fills a pit."
> [...] why did I find the corpse *lying on* and not *buried in* the
> former pit?

Ensure that the corpse ends up buried in that case.
This commit is contained in:
nethack.allison
2004-04-11 18:39:14 +00:00
parent 1194454b2f
commit 6dc1bbd544
9 changed files with 59 additions and 24 deletions

View File

@@ -884,14 +884,15 @@ int x, y;
* resurrection.
*/
struct obj *
mkcorpstat(objtype, mtmp, ptr, x, y, init)
mkcorpstat(objtype, mtmp, ptr, x, y, corpstatflags)
int objtype; /* CORPSE or STATUE */
struct monst *mtmp;
struct permonst *ptr;
int x, y;
boolean init;
unsigned corpstatflags;
{
register struct obj *otmp;
boolean init = ((corpstatflags & CORPSTAT_INIT) != 0);
if (objtype != CORPSE && objtype != STATUE)
impossible("making corpstat type %d", objtype);
@@ -1058,9 +1059,11 @@ int x, y;
const char *nm;
{
struct obj *otmp;
unsigned corpstatflags = (objtype != STATUE) ?
CORPSTAT_INIT : CORPSTAT_NONE;
otmp = mkcorpstat(objtype, (struct monst *)0, ptr,
x, y, (boolean)(objtype != STATUE));
x, y, corpstatflags);
if (nm)
otmp = oname(otmp, nm);
return(otmp);