'struct former' -> 'struct ebones'
Some variants were already using a similar approach using a struct called 'ebones', so adopt the same naming so NetHack-3.7, hardfought, and some variants are using the same name. As before there are fields in the struct that are not currently used by NetHack-3.7, but the intent is that hardfought save and bones files can be loaded by NetHack-3.7 without code modification, for debugging bug reports. This invalidates existing save and bones files.
This commit is contained in:
@@ -1070,29 +1070,6 @@ newmextra(void)
|
||||
return mextra;
|
||||
}
|
||||
|
||||
void
|
||||
newformer(struct monst *mtmp)
|
||||
{
|
||||
if (!mtmp->mextra)
|
||||
mtmp->mextra = newmextra();
|
||||
if (!FORMER(mtmp)) {
|
||||
FORMER(mtmp) = (struct former_incarnation *) alloc(
|
||||
sizeof(struct former_incarnation *));
|
||||
(void) memset((genericptr_t) FORMER(mtmp), 0,
|
||||
sizeof(struct former_incarnation *));
|
||||
FORMER(mtmp)->parentmid = mtmp->m_id;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
free_former(struct monst *mtmp)
|
||||
{
|
||||
if (mtmp->mextra && FORMER(mtmp)) {
|
||||
free((genericptr_t) FORMER(mtmp));
|
||||
FORMER(mtmp) = (struct former_incarnation *) 0;
|
||||
}
|
||||
}
|
||||
|
||||
staticfn boolean
|
||||
makemon_rnd_goodpos(
|
||||
struct monst *mon,
|
||||
|
||||
Reference in New Issue
Block a user