refactored clean_data and clean_parents

This commit is contained in:
Zeno Rogue 2021-08-19 13:19:11 +02:00
parent 881b262174
commit 2f11f9babb
1 changed files with 13 additions and 2 deletions

View File

@ -1312,12 +1312,23 @@ void find_single_live_branch(twalker at) {
}
}
EX void clean_data() {
analyzers.clear();
important = t_origin;
}
EX void clean_parents() {
clean_data();
sidecache.clear();
auto c = first_tcell;
while(c) { c->parent_dir = MYSTERY; c = c->next; }
}
EX void rules_iteration() {
try_count++;
if((try_count & (try_count-1)) == 0) {
analyzers.clear();
important = t_origin;
clean_data();
}
if(debugflags & DF_GEOM) println(hlog, "attempt: ", try_count);