mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-28 22:10:40 +00:00
rulegen:: tests:: an option to debug parent_dir
This commit is contained in:
parent
72f0f9b28b
commit
89958ea3c8
@ -126,6 +126,16 @@ void view_debug() {
|
|||||||
sprawl_shown.clear();
|
sprawl_shown.clear();
|
||||||
for(int i=0; i<isize(res); i++) sprawl_shown[res[i].at] = i;
|
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)
|
for(auto dw: debuglist)
|
||||||
|
Loading…
Reference in New Issue
Block a user