From: Pasi Kallinen Date: Tue, 31 Mar 2020 17:19:29 +0000 (+0300) Subject: Fix birth statistics for pets after #wizmakemap X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f13ee3c9bcec99cefea0f93fd95e9da77b44ffd3;p=nethack Fix birth statistics for pets after #wizmakemap --- diff --git a/src/cmd.c b/src/cmd.c index bd62da96c..eebfee01d 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -778,6 +778,10 @@ boolean pre, wiztower; struct monst *mtmp; 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)); for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { int ndx = monsndx(mtmp->data); @@ -833,9 +837,6 @@ boolean pre, wiztower; u.uinwater = 0; u.uundetected = 0; /* not hidden, even if means are available */ 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 */ zero_nhfile(&tmpnhfp); /* also sets fd to -1 as desired */