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:
parent
db7901791f
commit
b6505de623
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user