Fix birth statistics for pets after #wizmakemap
This commit is contained in:
@@ -778,6 +778,10 @@ boolean pre, wiztower;
|
|||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
|
|
||||||
if (pre) {
|
if (pre) {
|
||||||
|
/* keep steed and other adjacent pets after releasing them
|
||||||
|
from traps, stopping eating, &c as if hero were ascending */
|
||||||
|
keepdogs(TRUE); /* (pets-only; normally we'd be using 'FALSE' here) */
|
||||||
|
|
||||||
rm_mapseen(ledger_no(&u.uz));
|
rm_mapseen(ledger_no(&u.uz));
|
||||||
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
||||||
int ndx = monsndx(mtmp->data);
|
int ndx = monsndx(mtmp->data);
|
||||||
@@ -833,9 +837,6 @@ boolean pre, wiztower;
|
|||||||
u.uinwater = 0;
|
u.uinwater = 0;
|
||||||
u.uundetected = 0; /* not hidden, even if means are available */
|
u.uundetected = 0; /* not hidden, even if means are available */
|
||||||
dmonsfree(); /* purge dead monsters from 'fmon' */
|
dmonsfree(); /* purge dead monsters from 'fmon' */
|
||||||
/* keep steed and other adjacent pets after releasing them
|
|
||||||
from traps, stopping eating, &c as if hero were ascending */
|
|
||||||
keepdogs(TRUE); /* (pets-only; normally we'd be using 'FALSE' here) */
|
|
||||||
|
|
||||||
/* discard current level; "saving" is used to release dynamic data */
|
/* discard current level; "saving" is used to release dynamic data */
|
||||||
zero_nhfile(&tmpnhfp); /* also sets fd to -1 as desired */
|
zero_nhfile(&tmpnhfp); /* also sets fd to -1 as desired */
|
||||||
|
|||||||
Reference in New Issue
Block a user