diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 77f419f4d..cc240d41a 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -25,6 +25,7 @@ be consistent with use of "removing" rather than "lifting" for encumber messages associated with taking things out of a bag of holding cursed scroll of destroy armor damaging cursed armor didn't adjust attributes add passive() flag that indicates uwep was destroyed during the turn +calculate weight of corpses on special levels correctly Platform- and/or Interface-Specific Fixes diff --git a/src/sp_lev.c b/src/sp_lev.c index b42903aa5..f0fe4c94c 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -963,8 +963,11 @@ struct mkroom *croom; } /* corpsenm is "empty" if -1, random if -2, otherwise specific */ - if (o->corpsenm == NON_PM - 1) otmp->corpsenm = rndmonnum(); - else if (o->corpsenm != NON_PM) otmp->corpsenm = o->corpsenm; + if (o->corpsenm != NON_PM) { + if (o->corpsenm == NON_PM - 1) otmp->corpsenm = rndmonnum(); + else otmp->corpsenm = o->corpsenm; + otmp->owt = weight(otmp); + } /* assume we wouldn't be given an egg corpsenm unless it was hatchable */