1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-26 15:13:19 +00:00

rulegen:: tests:: an option to debug parent_dir

This commit is contained in:
Zeno Rogue 2021-08-17 14:34:27 +02:00
parent 72f0f9b28b
commit 89958ea3c8

View File

@ -126,6 +126,16 @@ void view_debug() {
sprawl_shown.clear();
for(int i=0; i<isize(res); i++) sprawl_shown[res[i].at] = i;
}));
v.push_back(named_functionality("parent_dir", [m] {
tcell *c = m->counterpart[centerover->master];
println(hlog, "parent_dir = ", c->parent_dir);
c->parent_dir = MYSTERY;
parent_debug = true;
get_parent_dir(c);
parent_debug = false;
println(hlog, "parent_dir = ", c->parent_dir);
}));
}));
for(auto dw: debuglist)