Wrong weight of corpses on special levels
Incorporate a fix from <Someone> related to slashem-Bugs-916544. The weight was not recalcuated after changing the corpsenm.
This commit is contained in:
+5
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user