Fix fuzzer teleporting out of Fort Ludios

This commit is contained in:
Pasi Kallinen
2023-03-18 08:51:33 +02:00
parent f360dee4dd
commit e37428d5cd
4 changed files with 11 additions and 2 deletions

View File

@@ -490,6 +490,9 @@ mon_arrive(struct monst *mtmp, int when)
if (t) {
xlocale = t->tx, ylocale = t->ty;
break;
} else if (iflags.debug_fuzzer && (stway = stairway_find_dir(TRUE)) != 0) {
/* debugfuzzer returning from knox */
xlocale = stway->sx, ylocale = stway->sy;
} else if (!(u.uevent.qexpelled
&& (Is_qstart(&u.uz0) || Is_qstart(&u.uz)))) {
impossible("mon_arrive: no corresponding portal?");