polymorphed quest leader
Duuuh. Of course adding objects already changed the editlevel. Anyway, here's the fix I was working on. It only matters in a very obscure situation. (Also, the quest leader still speaks no matter what he's polymorphed into.)
This commit is contained in:
+3
-2
@@ -963,8 +963,9 @@ struct monst *mtmp;
|
|||||||
if (otmp && otmp->oxlth) {
|
if (otmp && otmp->oxlth) {
|
||||||
struct monst *mtmp2 = (struct monst *)otmp->oextra;
|
struct monst *mtmp2 = (struct monst *)otmp->oextra;
|
||||||
if (mtmp->data) mtmp2->mnum = monsndx(mtmp->data);
|
if (mtmp->data) mtmp2->mnum = monsndx(mtmp->data);
|
||||||
/* invalidate pointers and m_id */
|
/* invalidate pointers */
|
||||||
mtmp2->m_id = 0;
|
/* m_id is needed to know if this is a revived quest leader */
|
||||||
|
/* but m_id must be cleared when loading bones */
|
||||||
mtmp2->nmon = (struct monst *)0;
|
mtmp2->nmon = (struct monst *)0;
|
||||||
mtmp2->data = (struct permonst *)0;
|
mtmp2->data = (struct permonst *)0;
|
||||||
mtmp2->minvent = (struct obj *)0;
|
mtmp2->minvent = (struct obj *)0;
|
||||||
|
|||||||
Reference in New Issue
Block a user