more clobber-detection
This commit is contained in:
@@ -183,6 +183,7 @@ struct edog {
|
||||
};
|
||||
|
||||
struct former_incarnation {
|
||||
unsigned parentmid; /* make clobber-detection possible */
|
||||
char rank[25]; /* for bones' ghost rank in their former life */
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 116
|
||||
#define EDITLEVEL 117
|
||||
|
||||
/*
|
||||
* Development status possibilities.
|
||||
|
||||
@@ -1080,6 +1080,7 @@ newformer(struct monst *mtmp)
|
||||
sizeof(struct former_incarnation *));
|
||||
(void) memset((genericptr_t) FORMER(mtmp), 0,
|
||||
sizeof(struct former_incarnation *));
|
||||
FORMER(mtmp)->parentmid = mtmp->m_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user