From 5ca4e166b1badc83e26650d6a5f5b43642f431d6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 18 Mar 2023 10:46:10 +0200 Subject: [PATCH] More fuzzer branch teleporting --- src/dog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dog.c b/src/dog.c index 8b97d5b86..b1249f484 100644 --- a/src/dog.c +++ b/src/dog.c @@ -490,8 +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 */ + } else if (iflags.debug_fuzzer + && (stway = stairway_find_dir(!builds_up(&u.uz))) != 0) { + /* debugfuzzer returns from or enters another branch */ xlocale = stway->sx, ylocale = stway->sy; } else if (!(u.uevent.qexpelled && (Is_qstart(&u.uz0) || Is_qstart(&u.uz)))) {