1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

notknot:: added debug to show pathbacks

This commit is contained in:
Zeno Rogue 2021-03-25 11:17:12 +01:00
parent db7901791f
commit b6505de623

View File

@ -743,6 +743,18 @@ struct hrmap_notknot : hrmap {
}
add_to_unify(us, u);
}
if(loop_any < 2 && u->where == all[0]->where) {
vector<int> 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<heptagon*, int> indices;