From b6505de6237d1dd4daa7b75be04e21fea03e5fbe Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 25 Mar 2021 11:17:12 +0100 Subject: [PATCH] notknot:: added debug to show pathbacks --- rogueviz/notknot.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rogueviz/notknot.cpp b/rogueviz/notknot.cpp index 1128b021..795fb993 100644 --- a/rogueviz/notknot.cpp +++ b/rogueviz/notknot.cpp @@ -743,6 +743,18 @@ struct hrmap_notknot : hrmap { } add_to_unify(us, u); } + + if(loop_any < 2 && u->where == all[0]->where) { + vector pathback; + auto us = all[0]; + auto uc = u; + while(uc->parentdir != -1) { + pathback.push_back(uc->parentdir); + us = gen_adj(us, uc->parentdir); + uc = uc->ptr[(int) uc->parentdir]; + } + println(hlog, "pathback = ", pathback); + } } map indices;